JP2011076197A - Apparatus and method for processing image, and computer program - Google Patents

Apparatus and method for processing image, and computer program Download PDF

Info

Publication number
JP2011076197A
JP2011076197A JP2009224430A JP2009224430A JP2011076197A JP 2011076197 A JP2011076197 A JP 2011076197A JP 2009224430 A JP2009224430 A JP 2009224430A JP 2009224430 A JP2009224430 A JP 2009224430A JP 2011076197 A JP2011076197 A JP 2011076197A
Authority
JP
Japan
Prior art keywords
resolution
division
block
image
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009224430A
Other languages
Japanese (ja)
Inventor
Kenji Murakami
謙二 村上
Iwane Ikeda
岩音 池田
Takashi Hiuga
崇 日向
Kimii Mizobe
公威 溝部
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 JP2009224430A priority Critical patent/JP2011076197A/en
Publication of JP2011076197A publication Critical patent/JP2011076197A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce an amount of data while maintaining high quality of image data. <P>SOLUTION: An image processing apparatus 200 includes a resolution determining part 222 for determining a plurality of divide resolutions used for dividing an image, and a data generating part 223 for generating multi-resolution data indicating the image by using a plurality of kinds of blocks (501 to 551) corresponding to the plurality of divide resolutions. The resolution determining part determines a minimum divide resolution based on a greatest common divisor of the number of pixels in the longitudinal and lateral directions of the image and determines a plurality of divide resolutions to have a value obtained by multiplying the minimum divide resolution by an integer. The data generating part 223 divides the image into a plurality of uniform blocks (A1 to Fn) by using blocks as large as possible among the plurality of kinds of blocks, and generates multi-resolution image data including a resolution number indicating the resolution of respective uniform blocks obtained by the block division, and color information of the blocks. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像データのデータ量を削減する技術に関するものである。   The present invention relates to a technique for reducing the amount of image data.

プリンターやパーソナルコンピュータやデジタルスチルカメラ等の画像処理装置間において高解像度の画像を転送する場合、処理するデータ量が多いことから画像転送のための処理負荷が大きくなる。そこで、画像を圧縮して転送したり、解像度を低下させて転送したりすることにより、転送データ量を減らすことが行われている。ここで、文字部分とそれ以外の部分(以下「絵柄部分」と呼ぶ)とを含む画像に対して一様に解像度を低下させて転送した場合、伸張後の画像の文字部分において線幅の不均一やシャギーなどの画質の劣化が発生し得る。そこで、文字部分と絵柄部分とを分離し、それぞれ適切な解像度に低下させて転送し、受信側において、それぞれの部分について高解像度化して解像度を一致させた上で合成する方法が提案されている(例えば、特許文献1、2)。   When transferring a high-resolution image between image processing apparatuses such as a printer, a personal computer, or a digital still camera, the processing load for image transfer increases because of the large amount of data to be processed. Accordingly, the amount of transferred data is reduced by compressing and transferring an image or transferring the image with a reduced resolution. Here, when the image including the character part and the other part (hereinafter referred to as “picture part”) is transferred with the resolution reduced uniformly, the line width in the character part of the expanded image is not reduced. Degradation of image quality such as uniformity and shaggy can occur. Therefore, a method has been proposed in which a character part and a picture part are separated, transferred to respective appropriate resolutions, and combined on the receiving side after increasing the resolution of each part to match the resolution. (For example, Patent Documents 1 and 2).

特開2001−136374号公報JP 2001-136374 A 特開2002−176552号公報JP 2002-176552 A

しかし、従来の方法では、受信側における画像の合成などの演算処理の負荷が大きいという問題があった。特に、コンピュータからプリンターに印刷用の画像データを送る場合、コンピュータに比べて処理能力が小さなプリンターで画像の合成などの演算処理を行うと、システム全体としての処理時間がかかるという問題があった。   However, in the conventional method, there is a problem that the processing load such as image synthesis on the receiving side is heavy. In particular, when image data for printing is sent from a computer to a printer, there is a problem that it takes a long processing time as a whole system if arithmetic processing such as image synthesis is performed with a printer having a processing capability smaller than that of a computer.

本発明は、上述の課題の少なくとも一部を解決し、画像データについて、高品質を維持しつつ、データ量を削減することを目的とする。   An object of the present invention is to solve at least a part of the above-described problems and to reduce the amount of data while maintaining high quality for image data.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。   SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.

[適用例1]
画像処理装置であって、画像を分割する際に使用する複数の分割解像度を決定する解像度決定部と、前記複数の分割解像度に対応する複数種類のブロックを用いて前記画像を表す多解像度画像データを生成するデータ生成部と、を備え、前記解像度決定部は、前記画像の縦方向の長さと横方向の長さの最大公約数に基づいて、前記複数の分割解像度のうち最小の分割解像度を決定し、前記最小の分割解像度と順次整数を乗じた関係を有するように前記複数の分割解像度を決定し、前記データ生成部は、前記複数種類のブロックのうち、可能な限り大きなブロックを用いて前記画像を複数の一様なブロックに分割し、当該ブロック分割で得られたそれぞれ一様なブロックの解像度を示す解像度番号と、前記ブロックの色情報と、を含む多解像度画像データを生成する、画像処理装置。
この適用例によれば、画像の縦方向のピクセル数と横方向のピクセル数の最大公約数に基づいて画像を可能な限り大きなブロックに分割する。そして、一様なブロックごとのブロックの分割解像度を示す解像度番号と、ブロックの色情報とを含む多解像度画像データを生成する。そのため、画像データについて、高品質を維持しつつ、データ量を削減することが可能である。
[Application Example 1]
An image processing apparatus, a resolution determination unit for determining a plurality of division resolutions used when dividing an image, and multi-resolution image data representing the image using a plurality of types of blocks corresponding to the plurality of division resolutions And a data generation unit for generating the resolution, and the resolution determination unit determines a minimum divided resolution of the plurality of divided resolutions based on a greatest common divisor of a vertical length and a horizontal length of the image. Determining the plurality of division resolutions so as to have a relationship obtained by sequentially multiplying the minimum division resolution by an integer, and the data generation unit uses the largest possible block among the plurality of types of blocks. The image is divided into a plurality of uniform blocks, and a multi-resolution including a resolution number indicating the resolution of each uniform block obtained by the block division and color information of the block Generating the image data, the image processing apparatus.
According to this application example, the image is divided into as large blocks as possible based on the greatest common divisor of the number of pixels in the vertical direction and the number of pixels in the horizontal direction. Then, multi-resolution image data including a resolution number indicating a block division resolution for each uniform block and block color information is generated. Therefore, it is possible to reduce the data amount of image data while maintaining high quality.

[適用例2]
適用例1に記載の画像処理装置において、前記画像データ生成部は、前記多解像度データを生成する処理において、(a)前記複数の分割解像度のうちの最も低い分割解像度を設定分割解像度に設定するとともに、前記画像の全体を分割対象画像領域として設定し、(b)前記設定解像度で前記分割対象画像領域を複数個のブロックに分割し、(c)前記分割された複数個のブロックの中の1つのブロックを順に処理対象ブロックとして選択し、(d)前記処理対象ブロックが一様か否かを判断し、(d−1)前記処理対象ブロックが一様な場合には、前記設定分割解像度を示す解像度情報と、前記処理対象ブロックの色を示す色情報とを、前記処理対象ブロックを表す多解像度画像データとして生成するとともに、前記処理(c)に戻って前記処理(c)以降の処理を継続し、(d−2)前記処理対象ブロックが一様でない場合に、(d−2−1)前記設定分割解像度の次に高い分割解像度が前記複数の分割解像度のうちの最も高い分割解像度以下である場合には、前記次に高い分割解像度を新たな設定分割解像度として設定し、前記処理対象ブロックを新たな分割対象画像領域として設定するとともに、前記処理(b)に戻って前記処理(b)以降の処理を実行し、(d−2−2)前記設定分割解像度の次に高い分割解像度が前記複数の分割解像度のうちの最も高い分割解像度を超える場合には、前記設定分割解像度を示す解像度情報と、前記処理対象ブロックの色を示す色情報とを、前記処理対象ブロックを表す多解像度画像データとして生成し、(e)前記処理(c)において前記設定分割解像度の複数個のブロックの中の次のブロックが存在しない場合、及び、前記処理(d−2−2)の処理が行われた場合には、前記設定分割解像度を次に低い分割解像度に設定し、前記処理(c)に戻って前記処理(c)以降の処理を実行する、画像処理装置。
[Application Example 2]
In the image processing apparatus according to Application Example 1, in the process of generating the multi-resolution data, the image data generation unit sets (a) a lowest divided resolution among the plurality of divided resolutions as a set divided resolution. In addition, the entire image is set as a division target image area, (b) the division target image area is divided into a plurality of blocks at the set resolution, and (c) among the plurality of divided blocks. One block is sequentially selected as a processing target block, (d) it is determined whether or not the processing target block is uniform, and (d-1) when the processing target block is uniform, the set division resolution And the color information indicating the color of the processing target block are generated as multi-resolution image data representing the processing target block, and the processing returns to the processing (c). (D-2) When the processing target block is not uniform, (d-2-1) the next highest division resolution after the set division resolution is the plurality of divisions. When the resolution is equal to or lower than the highest division resolution, the next highest division resolution is set as a new set division resolution, the processing target block is set as a new division target image area, and the processing ( Returning to b), the processing after the processing (b) is executed, and (d-2-2) the next highest division resolution of the set division resolution exceeds the highest division resolution among the plurality of division resolutions Includes generating resolution information indicating the set division resolution and color information indicating the color of the processing target block as multi-resolution image data representing the processing target block, and (e) performing the processing (c). When the next block among the plurality of blocks having the set division resolution does not exist and when the process (d-2-2) is performed, the set division resolution is set to the next lowest. An image processing apparatus that sets the division resolution and returns to the processing (c) to execute the processing after the processing (c).

[適用例3]
適用例2に記載の画像処理装置において、前記処理(d−2−1)における前記設定分割解像度と、次に高い分割解像度との比は、前記設定分割解像度の大きさにかかわらず一定の比である、画像処理装置。
この適用例によれば、設定分割解像度と、次に高い分割解像度と比は、設定分割解像度の大きさにかかわらず一定であるので、処理が複雑にならない。
[Application Example 3]
In the image processing apparatus according to Application Example 2, the ratio between the set divided resolution in the process (d-2-1) and the next highest divided resolution is a constant ratio regardless of the size of the set divided resolution. An image processing apparatus.
According to this application example, the set divided resolution and the next highest divided resolution and the ratio are constant regardless of the size of the set divided resolution, so that the processing is not complicated.

[適用例4]
適用例3に記載の画像処理装置において、前記処理(d−2−1)における前記設定分割解像度と、次に分割解像度の低い分割解像度との比は2であり、前記処理(b)に戻ったときに、前記画像データ生成部は、前記ブロックを2×2の4ブロックに分割する、画像処理装置。
この適用例によれば、次のブロックを出来る限り大きなブロックにすることが可能である。
[Application Example 4]
In the image processing apparatus according to Application Example 3, the ratio between the set division resolution in the process (d-2-1) and the division resolution having the next lowest division resolution is 2, and the process returns to the process (b). The image data generation unit divides the block into 2 × 2 4 blocks.
According to this application example, it is possible to make the next block as large as possible.

本発明は、種々の形態で実現することが可能であり、例えば、画像処理装置の他、画像処理方法、コンピュータプログラム等、様々な形態で実現することができる。   The present invention can be realized in various forms. For example, in addition to an image processing apparatus, the present invention can be realized in various forms such as an image processing method and a computer program.

本発明の第1の実施例における画像転送システムの概略構成を示す説明図である。It is explanatory drawing which shows schematic structure of the image transfer system in 1st Example of this invention. 図1に示す画像転送システム400の詳細構成を示す説明図である。It is explanatory drawing which shows the detailed structure of the image transfer system 400 shown in FIG. ラスターイメージデータから転送用画像データを作成する原理を模式的に示す説明図である。It is explanatory drawing which shows typically the principle which produces the image data for transfer from raster image data. ラスターイメージデータを分割して出来るブロックと分割解像度の関係を示す説明図である。It is explanatory drawing which shows the relationship between the block formed by dividing | segmenting raster image data, and division | segmentation resolution. 画像データの生成フローを示す説明図である。It is explanatory drawing which shows the production | generation flow of image data. 図5の処理の内容を、画像を用いて説明する説明図である。It is explanatory drawing explaining the content of the process of FIG. 5 using an image. 図5の処理の内容を、画像を用いて説明する説明図である。It is explanatory drawing explaining the content of the process of FIG. 5 using an image. 生成された転送用画像データの一部を示す説明図である。It is explanatory drawing which shows a part of produced | generated image data for transfer. ある画像をブロック分割したときの各ブロックとそのブロックの解像度番号を示す説明図の一部である。It is a part of explanatory drawing which shows each block when a certain image is divided into blocks, and the resolution number of the block. ブロックが一様か否かを判断するための方法の一例を示す説明図である。It is explanatory drawing which shows an example of the method for determining whether a block is uniform. 図8に示す転送用画像データを用いて画像を復元するときの様子を示す説明図である。It is explanatory drawing which shows a mode when an image is decompress | restored using the image data for transfer shown in FIG. 図8に示す転送用画像データを用いて画像を復元するときの様子を示す説明図である。It is explanatory drawing which shows a mode when an image is decompress | restored using the image data for transfer shown in FIG. 画像部品がベクトルデータで示されるときの分割処理の内容を、画像を用いて説明する説明図である。It is explanatory drawing explaining the content of the division | segmentation process when an image component is shown by vector data using an image. 画像部品がベクトルデータで示されるときの分割処理の内容を、画像を用いて説明する説明図である。It is explanatory drawing explaining the content of the division | segmentation process when an image component is shown by vector data using an image. 画像部品がベクトルデータで示されるときのブロックが一様か否かを判断するための方法の一例を示す説明図である。It is explanatory drawing which shows an example of the method for determining whether a block when an image component is shown by vector data is uniform. 第3の実施例を示す説明図である。It is explanatory drawing which shows a 3rd Example. 第4の実施例を示す説明図である。It is explanatory drawing which shows a 4th Example. 第4の実施例の変形例を示す説明図である。It is explanatory drawing which shows the modification of a 4th Example. 第5の実施例を示す説明図である。It is explanatory drawing which shows a 5th Example. 第6の実施例を示す説明図である。It is explanatory drawing which shows a 6th Example.

以下、本発明を実施するための最良の形態を実施例に基づいて説明する。
A.第1の実施例:
A1.システム構成:
図1は、本発明の第1の実施例における画像転送システムの概略構成を示す説明図である。この画像転送システム400は、複合機100と、パーソナルコンピュータ200と、を備えている。複合機100とパーソナルコンピュータ200とは、互いにケーブル150を介して接続されている。複合機100とパーソナルコンピュータ200との間の接続インターフェースとしては、例えば、USB(Universal Serial Bus)インターフェースやIEEE802.3等のLAN(Local Area Network)インターフェースを採用することができる。なお、ケーブルを用いた有線接続に代えて、IEEE802.11b規格の無線LAN接続や、IrDA(Infrared Data Association)規格の赤外線接続等の無線接続も採用することができる。
Hereinafter, the best mode for carrying out the present invention will be described based on examples.
A. First embodiment:
A1. System configuration:
FIG. 1 is an explanatory diagram showing a schematic configuration of an image transfer system according to the first embodiment of the present invention. The image transfer system 400 includes a multifunction peripheral 100 and a personal computer 200. The multifunction device 100 and the personal computer 200 are connected to each other via a cable 150. As a connection interface between the MFP 100 and the personal computer 200, for example, a USB (Universal Serial Bus) interface or a LAN (Local Area Network) interface such as IEEE 802.3 can be employed. Instead of wired connection using a cable, wireless connection such as IEEE802.11b standard wireless LAN connection or IrDA (Infrared Data Association) standard infrared connection may be employed.

複合機100は、プリンター,スキャナ及び複写装置として機能する。画像転送システム400では、パーソナルコンピュータ200から画像データを転送して、複合機100において画像を印刷させることができる。   The multifunction device 100 functions as a printer, a scanner, and a copying apparatus. In the image transfer system 400, image data can be transferred from the personal computer 200, and an image can be printed in the multifunction peripheral 100.

図2は、図1に示す画像転送システム400の詳細構成を示す説明図である。パーソナルコンピュータ200は、コンピュータ本体201と、ディスプレイ装置202と、キーボード203と、マウス204とを備えている。コンピュータ本体201は、CPU20と、メモリー31と、ハードディスク32と、I/O制御部33と、ネットワークインターフェース部34とを備えている。   FIG. 2 is an explanatory diagram showing a detailed configuration of the image transfer system 400 shown in FIG. The personal computer 200 includes a computer main body 201, a display device 202, a keyboard 203, and a mouse 204. The computer main body 201 includes a CPU 20, a memory 31, a hard disk 32, an I / O control unit 33, and a network interface unit 34.

メモリー31には、画像を扱うアプリケーションプログラムが格納されており、CPU20は、このアプリケーションプログラムを実行することにより、アプリケーション実行部21として機能する。なお、画像を扱うアプリケーションとしては、例えば、画像閲覧用アプリケーション(AdobeSystems社のAcrobatReader(登録商標)等)やレタッチソフトなどを採用することができる。また、メモリー31には、複合機100用のデバイスドライバープログラム(プリンタードライバープログラム及びスキャナドライバープログラム)が格納されている。CPU20は、プリンタードライバープログラムを実行することにより、プリンタードライバー22として機能する。このプリンタードライバー22は、ラスターデータ展開部221と、データ変換部222と、データ送信制御部225とを備えている。   The memory 31 stores an application program that handles images, and the CPU 20 functions as the application execution unit 21 by executing the application program. As an application for handling images, for example, an image browsing application (such as Acrobat Reader (registered trademark) of Adobe Systems) or retouch software can be employed. The memory 31 also stores device driver programs (printer driver program and scanner driver program) for the multifunction machine 100. The CPU 20 functions as the printer driver 22 by executing a printer driver program. The printer driver 22 includes a raster data expansion unit 221, a data conversion unit 222, and a data transmission control unit 225.

アプリケーション実行部21は、ユーザの指示に従い画像の表示や加工等を行う。ラスターデータ展開部221は、アプリケーション実行部21が生成した描画データを解釈してラスターイメージデータに展開する。描画データとは、画像を構成する複数の画像部品(例えば文字、図形、絵柄)をベクトルデータやビットマップデータで表現したものである。典型的には、文字や図形はベクトルデータで表現されており、絵柄(写真など)はビットマップデータで表現されている。ラスターイメージデータは、ビットマップ画像であり、各ピクセルは、例えば、R(赤)G(緑)B(青)の階調値(8ビット×3チャネル)を有する。なお、アプリケーション実行部21は、ラスターイメージデータを直接生成してもよい。例えば、アプリケーション実行部21が、デジタルカメラで撮影された画像を処理する場合には、アプリケーション実行部21は、ラスターイメージデータを直接生成する。データ変換部222は、ラスターイメージデータを、よりデータ量の少ない転送用画像データに変換(圧縮)する。なお、データ変換部222が描画データからラスターイメージを介さず直接転送用画像データに変換する構成を採用することも可能であり、これについては、後述する。データ送信制御部225は、転送用画像データを、複合機100とパーソナルコンピュータ200との間の接続インターフェースに応じたデータフォーマットに変換すると共に、データ送信時における誤り制御やフロー制御等を行う。なお、データ変換部222は、ブロック分割するための分割解像度を決定する分割解像度決定部223と、着目領域のブロックが一様か否かを判断する判断部224を有している。 The application execution unit 21 displays and processes an image according to a user instruction. The raster data development unit 221 interprets the drawing data generated by the application execution unit 21 and develops it into raster image data. The drawing data is a representation of a plurality of image parts (for example, characters, figures, and patterns) constituting an image by vector data and bitmap data. Typically, characters and figures are represented by vector data, and patterns (photos and the like) are represented by bitmap data. The raster image data is a bitmap image, and each pixel has, for example, R (red), G (green), and B (blue) gradation values (8 bits × 3 channels). Note that the application execution unit 21 may directly generate raster image data. For example, when the application execution unit 21 processes an image captured by a digital camera, the application execution unit 21 directly generates raster image data. The data converter 222 converts (compresses) the raster image data into transfer image data with a smaller data amount. It is also possible to employ a configuration in which the data converter 222 directly converts drawing data into image data for transfer without going through a raster image, which will be described later. The data transmission control unit 225 converts the transfer image data into a data format corresponding to the connection interface between the multifunction peripheral 100 and the personal computer 200, and performs error control, flow control, and the like during data transmission. Note that the data conversion unit 222 includes a division resolution determination unit 223 that determines a division resolution for dividing a block, and a determination unit 224 that determines whether or not the block of the region of interest is uniform.

I/O制御部33は、ディスプレイ装置202と、キーボード203と、マウス204とを、それぞれコンピュータ本体201に接続するためのインターフェース群を備えている。I/O制御部33は、ディスプレイ装置202への表示画面データの送信や、キーボード203及びマウス204からの入力情報の受信を制御する。ネットワークインターフェース部34は、複合機100との間の接続インターフェース群からなる。   The I / O control unit 33 includes an interface group for connecting the display device 202, the keyboard 203, and the mouse 204 to the computer main body 201. The I / O control unit 33 controls transmission of display screen data to the display device 202 and reception of input information from the keyboard 203 and the mouse 204. The network interface unit 34 includes a group of connection interfaces with the multifunction peripheral 100.

複合機100は、制御回路10と、プリンターエンジン13と、読取部14と、操作部15と、表示部16と、ネットワークインターフェース部17とを備えている。制御回路10は、メモリー11と、CPU12とを備えている。メモリー11には、複合機100の制御用プログラムが格納されており、CPU12は、この制御用プログラムを実行することにより、データ受信制御部12a,画像データ伸張部12b,色変換部12c,ハーフトーン処理部12d及びデータ並び替え部12eとして機能する。   The multifunction device 100 includes a control circuit 10, a printer engine 13, a reading unit 14, an operation unit 15, a display unit 16, and a network interface unit 17. The control circuit 10 includes a memory 11 and a CPU 12. The memory 11 stores a control program for the multifunction peripheral 100, and the CPU 12 executes the control program so that the data reception control unit 12a, the image data decompression unit 12b, the color conversion unit 12c, and the halftone. It functions as a processing unit 12d and a data rearrangement unit 12e.

データ受信制御部12aは、パーソナルコンピュータ200から送信される転送用画像データを受信する。画像データ伸張部12bは、転送用画像データを伸張し、ラスターイメージデータを生成する。色変換部12cは、ラスターイメージデータ(R,G,B)を、プリンターエンジン13において用いられるインク色(シアン(C)、マゼンダ(M)、イエロー(Y)、ブラック(K))の各階調値からなる画像データに変換(色変換)する。なお、色変換部12cは、メモリー11に記憶されている3次元ルックアップテーブルである色変換テーブル(図示省略)を参照して、前述の色変換を実行する。ハーフトーン処理部12dは、色変換後の画像データに対してハーフトーン処理を行うことによって、印刷データに変換する。この印刷データは、各色(C,M,Y,K)についてのドットのオン/オフで表される。データ並び替え部12eは、ハーフトーン処理により得られた印刷データを、プリンターエンジン13におけるインクヘッドやノズル番号等に対応付けたデータ形式に並び替える。   The data reception control unit 12 a receives transfer image data transmitted from the personal computer 200. The image data decompression unit 12b decompresses the transfer image data and generates raster image data. The color conversion unit 12c converts the raster image data (R, G, B) into gradations of ink colors (cyan (C), magenta (M), yellow (Y), black (K)) used in the printer engine 13. Convert to image data consisting of values (color conversion). The color conversion unit 12c performs the above-described color conversion with reference to a color conversion table (not shown) that is a three-dimensional lookup table stored in the memory 11. The halftone processing unit 12d converts the image data after color conversion into print data by performing halftone processing. This print data is represented by dot ON / OFF for each color (C, M, Y, K). The data rearrangement unit 12e rearranges the print data obtained by the halftone process into a data format associated with an ink head, a nozzle number, or the like in the printer engine 13.

プリンターエンジン13は、印刷ヘッド(図示省略)を備えたインクジェット式の印刷機構であり、給紙や印刷ヘッドの走査やインク吐出等を行って画像等を印刷用紙に印刷する。読取部14は、イメージセンサ(図示省略)が移動しながら固定された原稿を読み取る、いわゆるフラットベッドタイプ(原稿固定型)のスキャナである。操作部15は、各種操作ボタンを備え、ユーザによる操作入力を受け付ける。表示部16は、操作用メニュー画面やエラーメッセージ等を表示する。   The printer engine 13 is an ink jet printing mechanism including a print head (not shown), and prints an image or the like on a print sheet by feeding paper, scanning the print head, discharging ink, or the like. The reading unit 14 is a so-called flat bed type (original fixed type) scanner that reads an original fixed while an image sensor (not shown) moves. The operation unit 15 includes various operation buttons and accepts an operation input by a user. The display unit 16 displays an operation menu screen, an error message, and the like.

上記構成を有する画像転送システム400では、後述する転送用画像データ生成処理を実行することにより、パーソナルコンピュータ200から複合機100に転送する転送用画像データのデータ量を低減しつつ、印刷画像の品質の低下を抑制するように構成されている。   In the image transfer system 400 having the above-described configuration, the quality of the print image is reduced while executing the transfer image data generation process described later, thereby reducing the data amount of the transfer image data transferred from the personal computer 200 to the multifunction peripheral 100. It is comprised so that the fall of may be suppressed.

A2.画像データの送信処理:
ユーザは、パーソナルコンピュータ200において画像を扱うアプリケーションを実行し、ディスプレイ装置202に表示されている画像を印刷しようとする場合、アプリケーションのメニュー画面から印刷実行メニュー(図示省略)を選択する。このとき、ユーザは、プリンタードライバー用の設定画面をディスプレイ装置202に表示させ、使用する印刷装置の指定や印刷品質等の設定を行うことができる。
A2. Image data transmission processing:
When a user executes an application that handles images on the personal computer 200 and wants to print an image displayed on the display device 202, the user selects a print execution menu (not shown) from the menu screen of the application. At this time, the user can display the setting screen for the printer driver on the display device 202, and can specify the printing device to be used and set the print quality.

アプリケーション実行部21(図2)は、ユーザからの印刷指示を受け取ると、印刷指示に従って描画データを生成する。ラスターデータ展開部221は、描画データを解釈して画素毎の色情報(R,G,B)からなるラスターイメージデータに展開する。データ変換部222は、後述する転送用画像データ生成処理を実行し、ラスターイメージデータを転送用画像データに変換(圧縮)する。データ送信制御部225は、転送用画像データを、複合機100とパーソナルコンピュータ200との間の接続インターフェースに応じたデータフォーマットに変換して、ネットワークインターフェース部34を介して複合機100に送信する。   Upon receiving a print instruction from the user, the application execution unit 21 (FIG. 2) generates drawing data according to the print instruction. The raster data developing unit 221 interprets the drawing data and develops it into raster image data including color information (R, G, B) for each pixel. The data conversion unit 222 executes transfer image data generation processing, which will be described later, and converts (compresses) raster image data into transfer image data. The data transmission control unit 225 converts the transfer image data into a data format corresponding to the connection interface between the multifunction device 100 and the personal computer 200 and transmits the data format to the multifunction device 100 via the network interface unit 34.

A3.画像データの圧縮処理:
図3は、ラスターイメージデータから転送用画像データを作成する原理を模式的に示す説明図である。図3(A)は、変換前のラスターイメージデータ500の一例を示しており、白地に黒で「A」の文字が表示されている。図3(A)に示す例では、ラスターイメージデータ500は、1ピクセルの大きさが2400dpi×2400dpiのピクセルが、複数集まって形成されている。なお、図3(A)では、画像全体が4×4に区分されているように描かれているが、この区分の線は実際には存在せず、単に図示の便宜上描かれたものである。
A3. Image data compression processing:
FIG. 3 is an explanatory diagram schematically showing the principle of creating transfer image data from raster image data. FIG. 3A shows an example of raster image data 500 before conversion, in which the letter “A” is displayed in black on a white background. In the example shown in FIG. 3A, raster image data 500 is formed by collecting a plurality of pixels each having a size of 2400 dpi × 2400 dpi. In FIG. 3A, the entire image is drawn as being divided into 4 × 4, but the line of this division does not actually exist, and is drawn for convenience of illustration only. .

図3(B)は、変換後のラスターイメージデータ500a(多解像度画像データ)を示している。データ変換では、大きさが異なる複数種類のブロックR0〜R5が利用される。すなわち、データ変換部222は、複数種類のブロックR0〜R5のうち、可能な限り大きなブロックを用いてラスターイメージデータ500を複数の一様なブロックに分割する。図3(B)に示した例では、一番大きなブロックはブロックR0(分割解像度75dpi×75dpi)である。先ず、データ変換部222は、このブロックR0でラスターイメージデータ500を分割する。そして、各ブロックにつき一様か否かを判断し、分割されたブロックが一様でない場合には、そのブロックを次に大きなブロックR1(分割解像度150dpi×150dpi)で分割する。このようにして、順に分割解像度の大きなブロックで分割していく。この手順で分割される最も解像度の高いブロックR5の解像度は、元のラスターイメージデータ500の解像度(2400dpi×2400dpi)と同じである。なお、図3(B)は、図3(A)よりも大きく描かれているが、両者の画像の実際の寸法は同一である。   FIG. 3B shows raster image data 500a (multi-resolution image data) after conversion. In data conversion, a plurality of types of blocks R0 to R5 having different sizes are used. That is, the data conversion unit 222 divides the raster image data 500 into a plurality of uniform blocks using the largest possible block among the plurality of types of blocks R0 to R5. In the example shown in FIG. 3B, the largest block is the block R0 (divided resolution 75 dpi × 75 dpi). First, the data converter 222 divides the raster image data 500 in this block R0. Then, it is determined whether each block is uniform. If the divided blocks are not uniform, the block is divided into the next largest block R1 (divided resolution 150 dpi × 150 dpi). In this way, division is performed in order of blocks having a large division resolution. The resolution of the block R5 having the highest resolution divided by this procedure is the same as the resolution of the original raster image data 500 (2400 dpi × 2400 dpi). Although FIG. 3B is drawn larger than FIG. 3A, the actual dimensions of both images are the same.

図4は、ラスターイメージデータの分割に用いられるブロックと分割解像度の関係を示す説明図である。図4(A)は、図3に示したラスターイメージデータ500の全体を示している。ラスターイメージデータ500は、16個のブロック501(ブロックA0〜A16)に分割される。ここで、各ブロック501の分割解像度は75dpi×75dpiである。ここでブロックの分割解像度が(N)dpi×(N)dpiとは、ブロックの大きさ、あるいは、隣接するブロックの中心間距離が、1/Nインチであることを意味する。ブロック501は、ラスターイメージデータ500を分割するための最も大きなブロックとなる。ここで、ブロック501の解像度番号を、「0」(以下「R(0)」とも呼ぶ。)とする。   FIG. 4 is an explanatory diagram showing a relationship between blocks used for dividing raster image data and division resolution. FIG. 4A shows the entire raster image data 500 shown in FIG. The raster image data 500 is divided into 16 blocks 501 (blocks A0 to A16). Here, the division resolution of each block 501 is 75 dpi × 75 dpi. Here, the division resolution of a block is (N) dpi × (N) dpi means that the size of the block or the distance between the centers of adjacent blocks is 1 / N inch. The block 501 is the largest block for dividing the raster image data 500. Here, the resolution number of the block 501 is “0” (hereinafter also referred to as “R (0)”).

図4(B)は、図4(A)のブロック501を2×2の4ブロックにさらに分割した状態を示している。すなわち、ブロック501は、ブロック511を4つ有している。ブロック511の分割解像度は、150dpi×150dpiである。このブロック511は、ブロック501の次に大きなブロックであり、その解像度番号を、R(1)とする。以下、図4(C)〜(F)は、同様に図4(B)〜(E)に示すブロックを、それぞれ2×2の4ブロックに分割した状態を示している。図4(C)〜(F)に示されるブロック521、531、541、551の分割解像度は、それぞれ、300dpi、600dpi、1200dpi、2400dpiである。また、ブロック521、531、541、551の解像度番号を、それぞれ、R(2)、R(3)、R(4)、R(5)とする。このブロック551の分割解像度2400dpiは、複合機100(図1)の印刷の最高解像度と一致する。   FIG. 4B shows a state in which the block 501 in FIG. 4A is further divided into 2 × 2 4 blocks. That is, the block 501 has four blocks 511. The division resolution of the block 511 is 150 dpi × 150 dpi. This block 511 is the next largest block after the block 501, and its resolution number is R (1). Hereinafter, FIGS. 4C to 4F show a state in which the blocks shown in FIGS. 4B to 4E are similarly divided into 2 × 2 4 blocks. The division resolutions of the blocks 521, 531, 541, and 551 shown in FIGS. 4C to 4F are 300 dpi, 600 dpi, 1200 dpi, and 2400 dpi, respectively. In addition, the resolution numbers of the blocks 521, 531, 541, and 551 are R (2), R (3), R (4), and R (5), respectively. The division resolution 2400 dpi of the block 551 matches the highest printing resolution of the multifunction peripheral 100 (FIG. 1).

なお、分割に用いられるブロックの数(種類の数)としては、3以上が好ましい。また、複数種類のブロックの解像度は、順次整数を乗じた関係にあることが好ましい。図4の例では、5種類のブロック501から551の解像度は、2を順次乗じた関係にある。   Note that the number (number of types) of blocks used for division is preferably 3 or more. Moreover, it is preferable that the resolutions of a plurality of types of blocks have a relationship of sequentially multiplying by an integer. In the example of FIG. 4, the resolutions of the five types of blocks 501 to 551 are in a relationship of sequentially multiplying by 2.

図5は、画像データの生成フローを示す説明図である。ステップS500では、データ変換部222は、複合機100の印刷解像度を取得する。本実施例では、複合機100の最高印刷解像度は、2400dpiであり、この最高印刷解像度は、転送用画像データの最高分割解像度として使用される。なお、転送用画像データの最高分割解像度の値としては、複合機100の最高印刷解像度に限られず、複合機100の任意の印刷モードにおける印刷解像度を採用することが可能である。   FIG. 5 is an explanatory diagram showing a generation flow of image data. In step S500, the data conversion unit 222 acquires the print resolution of the multifunction peripheral 100. In this embodiment, the maximum printing resolution of the multifunction peripheral 100 is 2400 dpi, and this maximum printing resolution is used as the highest division resolution of the transfer image data. Note that the value of the highest division resolution of the transfer image data is not limited to the highest print resolution of the multifunction peripheral 100, and the print resolution in any print mode of the multifunction peripheral 100 can be employed.

ステップS505では、分割解像度決定部223は、ラスターイメージデータを分割するときの最低分割解像度(Rmin)と最高分割解像度(Rmax)とを設定する。分割解像度決定部223は、まず、最高分割解像度Rmaxとして、複合機100から取得した印刷解像度を用いる。本実施例では、この最高分割解像度Rmaxの値は、2400dpiである。次に、分割解像度決定部223は、この2400dpiの値を半分にすることを繰り返すことにより、転送用画像データを分割するための複数の分割解像度を決定する。具体的には、2400dpiを半分の1200dpiにし、1200dpiをまた半分の600dpiにしていく。分割解像度決定部223は、これを繰り返すことにより、最終的に75dpiまで解像度を低くする。なお、どこまで分割解像度を低くするかについて、分割解像度決定部223は任意に定めることが出来る。例えば、半分にする回数を、例えば5回あるいは6回と予め決めておいてもよい。また、分割解像度決定部223は、分割解像度の大きさを予め決めておいてもよい。例えば、分割解像度決定部223は、分割解像度が100dpi未満になったときは、これ以上低い分割解像度を作成しないように構成してもよい。本実施例では、分割解像度決定部223は、分割解像度が100dpi未満になった最初の分割解像度である解像度75dpiを最も低い分割解像度としている。この最も低い分割解像度を転送用画像データの最低分割解像度Rminとする。以上のように、分割解像度決定部223は、複合機100から得た印刷解像度の値を用いて、画像を分割するための複数の分割解像度を取得する。次に、データ変換部222は、各分割解像度について、解像度番号を付与する。データ変換部222は、最低分割解像度の解像度番号をR(0)とし、解像度を2倍にするに従って、解像度番号の値を1ずつ増やしていく。解像度75dpiの解像度番号をR(0)とすると、最高分割解像度である2400dpiの解像度番号はR(5)となる。   In step S505, the division resolution determination unit 223 sets a minimum division resolution (Rmin) and a maximum division resolution (Rmax) when dividing raster image data. The division resolution determination unit 223 first uses the print resolution acquired from the multifunction peripheral 100 as the highest division resolution Rmax. In this embodiment, the maximum division resolution Rmax is 2400 dpi. Next, the division resolution determination unit 223 determines a plurality of division resolutions for dividing the transfer image data by repeatedly halving the value of 2400 dpi. Specifically, 2400 dpi is reduced to half of 1200 dpi, and 1200 dpi is decreased to half of 600 dpi. The division resolution determination unit 223 repeats this to finally lower the resolution to 75 dpi. Note that the division resolution determination unit 223 can arbitrarily determine how much the division resolution is to be lowered. For example, the number of times of halving may be determined in advance, for example, 5 times or 6 times. Further, the divided resolution determination unit 223 may determine the size of the divided resolution in advance. For example, the divided resolution determination unit 223 may be configured not to create a lower divided resolution when the divided resolution becomes less than 100 dpi. In this embodiment, the division resolution determination unit 223 sets the resolution of 75 dpi, which is the first division resolution when the division resolution is less than 100 dpi, as the lowest division resolution. This lowest division resolution is set as the lowest division resolution Rmin of the transfer image data. As described above, the division resolution determination unit 223 acquires a plurality of division resolutions for dividing an image using the print resolution value obtained from the multifunction peripheral 100. Next, the data conversion unit 222 assigns a resolution number to each divided resolution. The data conversion unit 222 sets the resolution number of the lowest divided resolution to R (0), and increases the value of the resolution number by 1 as the resolution is doubled. If the resolution number of resolution 75 dpi is R (0), the resolution number of 2400 dpi which is the highest division resolution is R (5).

ステップS510では、プリンタードライバー22(図2)は、実行中のアプリケーションから、複合機100(図1)に出力する画像を取得する。この画像は、アプリケーション実行部21により、先ず、描画データとして出力される。次に、ラスターデータ展開部221は、描画データをラスターイメージデータに変換する。このとき、最高分割解像度でラスターイメージデータに展開する。   In step S510, the printer driver 22 (FIG. 2) acquires an image to be output to the multifunction peripheral 100 (FIG. 1) from the running application. This image is first output as drawing data by the application execution unit 21. Next, the raster data development unit 221 converts the drawing data into raster image data. At this time, raster image data is developed with the highest division resolution.

ステップS515では、データ変換部222は、設定分割解像度を最低分割解像度Rminに設定する。すなわち、設定分割解像度はR(0)(=75dpi)である。   In step S515, the data conversion unit 222 sets the set division resolution to the minimum division resolution Rmin. That is, the set division resolution is R (0) (= 75 dpi).

図6、図7は、図5の処理の内容を、画像を用いて説明する説明図である。図8は、生成された転送用画像データの一部を示す説明図である。転送用画像データが、請求項における多解像度画像データに該当する。図5のステップS520では、データ変換部222は、設定分割解像度R(0)(=75dpi)で画像を分割する。図6(A)は、データ変換部222が設定分割解像度R(0)(=75dpi)で4×4の16個のブロック(ブロックA1〜A16)に画像を分割した状態を示している。   6 and 7 are explanatory diagrams for explaining the contents of the processing of FIG. 5 using images. FIG. 8 is an explanatory diagram showing a part of the generated transfer image data. The transfer image data corresponds to the multi-resolution image data in the claims. In step S520 of FIG. 5, the data conversion unit 222 divides the image with the set division resolution R (0) (= 75 dpi). FIG. 6A shows a state in which the data conversion unit 222 divides an image into 4 × 4 16 blocks (blocks A1 to A16) with a set division resolution R (0) (= 75 dpi).

図5のステップS525では、データ変換部222は、左上のブロックA1を着目領域に設定する。なお、分割前の画像は、矩形であり、分割後のブロックは、その矩形の中に縦横に並んでいる。次のステップS530では、データ変換部222は、着目領域であるブロックA1が一様か否かを判断する。ブロックA1が1つの色(白、黒、又は任意の色)で塗りつぶされた領域であれば、ブロックA1は一様である。一様か否かの判断手法については、後述する。なお、この判断処理は、判断部224が実行する。   In step S525 of FIG. 5, the data conversion unit 222 sets the upper left block A1 as a region of interest. The image before division is a rectangle, and the blocks after division are arranged vertically and horizontally in the rectangle. In the next step S530, the data converter 222 determines whether or not the block A1 that is the region of interest is uniform. If the block A1 is an area filled with one color (white, black, or any color), the block A1 is uniform. A method for determining whether or not it is uniform will be described later. This determination process is executed by the determination unit 224.

着目領域であるブロックA1が一様である場合には、ステップS550においてデータ変換部222は、転送用画像データに、ブロックA1の解像度番号と色情報を格納する。本実施例の場合、ブロックA1は、一様で、色は「白」である。したがって、データ変換部222は、図8の転送用画像データのDa1行目のデータに解像度番号とRGBデータ(R(n),R,G,B)=(0,00h,00h,00h))を格納する。なお、RGBデータの末尾の「h」は16進数であることを示している。   If the block A1, which is the region of interest, is uniform, in step S550, the data conversion unit 222 stores the resolution number and color information of the block A1 in the transfer image data. In this embodiment, the block A1 is uniform and the color is “white”. Therefore, the data converter 222 adds the resolution number and RGB data (R (n), R, G, B) = (0, 00h, 00h, 00h)) to the data on the Da1 line of the transfer image data in FIG. Is stored. Note that “h” at the end of the RGB data indicates a hexadecimal number.

データ変換部222は、処理をステップS555、S560に移行し、次のブロックを着目領域に設定する。現在の着目領域はブロックA1であるので、データ変換部222は、ブロックA2を着目領域に設定する。具体的な着目領域の移動方法は、現在の着目領域であるブロックの右側に新たなブロックがある場合には、データ変換部222はその右側のブロックを新たな着目領域にする。着目領域がブロックA1の場合には、ブロックA1の右側にブロックA2がある。したがって、データ変換部222は、ブロックA2に着目領域を移動する。一方、現在の着目領域であるブロックの右側に新たなブロックがない場合には、データ変換部222はその下側のブロックのうち、最も左側のブロックを着目領域とする。例えば、現在の着目領域がブロックA4である場合には、ブロックA4の右側には、新たなブロックが無い。したがって、データ変換部222は、下側のブロックのうちもっとも左側のブロックであるブロックA5を着目領域とする。なお、現在の着目領域であるブロックの右側にも、下側にもブロックが無い場合(ステップS560、No)については、後述する。新たな着目領域が存在する場合には、CPU20は、ステップS530の処理に移行する。   The data conversion unit 222 shifts the processing to steps S555 and S560, and sets the next block as a region of interest. Since the current region of interest is the block A1, the data conversion unit 222 sets the block A2 as the region of interest. In a specific method of moving the attention area, when there is a new block on the right side of the block that is the current attention area, the data conversion unit 222 sets the right block as the new attention area. When the region of interest is the block A1, there is a block A2 on the right side of the block A1. Therefore, the data converter 222 moves the region of interest to the block A2. On the other hand, when there is no new block on the right side of the block that is the current region of interest, the data converter 222 sets the leftmost block among the lower blocks as the region of interest. For example, when the current region of interest is the block A4, there is no new block on the right side of the block A4. Accordingly, the data conversion unit 222 sets the block A5, which is the leftmost block among the lower blocks, as a region of interest. Note that the case where there is no block on either the right side or the lower side of the block that is the current region of interest (step S560, No) will be described later. If a new region of interest exists, the CPU 20 proceeds to the process of step S530.

ステップS530において、データ変換部222は、新たな着目領域であるブロックA2が一様か否かを判断する。本実施例の場合、ブロックA2は、右下部分に着色した部分があるため、判断結果は、「ブロックA2は、一様でない」となる。次に、データ変換部222は、ステップS535において、現在の設定分割解像度R(i)が最高分割解像度Rmaxであるか否かを判断する。現在の設定分割解像度R(i)は、R(0)(=75dpi)であり、最高分割解像度Rmax(=2400dpi)ではないので、データ変換部222は、ステップS540において、設定分割解像度を1つ上げ、設定分割解像度を2倍の150dpにする。そして、ステップS545において、CPUは、新たな設定分割解像度R(1)(=150dpi)でブロックA2を分割する。これにより、図6(B)に示すように、ブロックA2は、ブロックB1〜B4の4つのブロックに分割される。   In step S530, the data conversion unit 222 determines whether or not the block A2 that is a new region of interest is uniform. In the present embodiment, since the block A2 has a colored portion in the lower right portion, the determination result is “block A2 is not uniform”. Next, in step S535, the data conversion unit 222 determines whether or not the current set division resolution R (i) is the highest division resolution Rmax. Since the current set division resolution R (i) is R (0) (= 75 dpi) and not the highest division resolution Rmax (= 2400 dpi), the data conversion unit 222 sets one set division resolution in step S540. Increase the setting division resolution to 150dp. In step S545, the CPU divides the block A2 with the new setting division resolution R (1) (= 150 dpi). Thereby, as shown in FIG. 6B, the block A2 is divided into four blocks B1 to B4.

データ変換部222は、処理をステップS525に移行し、同様に、左上のブロックB1を着目領域に設定する。データ変換部222は、ステップS530において、着目領域であるブロックB1が一様か、否かを判断する。本実施例では、ブロックB1は一様で、白であるので、データ変換部222は、ステップS550に処理を移行し、図8の転送用画像データのDa2行目のデータに解像度番号とRGBデータ(R(n),R,G,B)=(1,00h,00h,00h))を格納する。以下、データ変換部222は、図5のステップS555において、順にブロックB2、B3、B4と着目領域を移動し、同様の処理を行う。本実施例では、ブロックB2、B3はいずれも一様で、白であるので、データ変換部222は、転送用画像データのDa3、Da4行目のデータに解像度番号とRGBデータ(R(n),R,G,B)=(1,00h,00h,00h))を格納する。ここで、分割解像度150dpiの解像度番号はR(1)である。   The data conversion unit 222 moves the process to step S525, and similarly sets the upper left block B1 as a region of interest. In step S530, the data conversion unit 222 determines whether or not the block B1 that is the region of interest is uniform. In this embodiment, since the block B1 is uniform and white, the data converter 222 shifts the processing to step S550, and the resolution number and RGB data are added to the Da2 line data of the transfer image data in FIG. (R (n), R, G, B) = (1, 00h, 00h, 00h)) is stored. Hereinafter, in step S555 of FIG. 5, the data conversion unit 222 sequentially moves the block B2, B3, and B4 and the region of interest, and performs the same processing. In this embodiment, since the blocks B2 and B3 are both uniform and white, the data conversion unit 222 adds the resolution number and RGB data (R (n)) to the Da3 and Da4 line data of the transfer image data. , R, G, B) = (1,0h, 00h, 00h)). Here, the resolution number of the divided resolution 150 dpi is R (1).

ブロックB4は一様でない。データ変換部222は、ステップS535で現在の設定分割解像度R(1)(=150dpi)が最高分割解像度Rmax(=2400dpi)か否かを判断する。現在の設定分割解像度R(1)(=150dpi)は、最高分割解像度Rmax(=2400dpi)ではないので、データ変換部222は、ステップS540において設定分割解像度を1つ上げて2倍の300dpiにする。そして、データ変換部222は、ステップS545でブロックB4を設定分割解像度R(2)(=300dpi)で分割する。具体的には、図6(C)に示すように、CPU20は、ブロックB4を、ブロックC1〜C4の4つのブロックに分割する。   Block B4 is not uniform. In step S535, the data conversion unit 222 determines whether or not the current set division resolution R (1) (= 150 dpi) is the highest division resolution Rmax (= 2400 dpi). Since the current set division resolution R (1) (= 150 dpi) is not the highest division resolution Rmax (= 2400 dpi), the data conversion unit 222 increases the setting division resolution by one to double it to 300 dpi in step S540. . In step S545, the data conversion unit 222 divides the block B4 with the set division resolution R (2) (= 300 dpi). Specifically, as shown in FIG. 6C, the CPU 20 divides the block B4 into four blocks C1 to C4.

以下、同様に、CPU20は、ブロックC1〜C4について、順に一様か否かを判断する(ステップS530)。ブロックC1、C2については、一様であるので、データ変換部222は、ステップS550〜S560が実行し、転送用画像データのDa5、Da6行目のデータに解像度番号とRGBデータ(R(n),R,G,B)=(2,00h,00h,00h))を格納する。一方、ブロックC3、C4については、一様でないので、各ブロックC3、C4について、それぞれ、ステップS535〜S545及びステップS525、S530を実行する。   Hereinafter, similarly, the CPU 20 determines whether or not the blocks C1 to C4 are uniform in order (step S530). Since the blocks C1 and C2 are uniform, the data conversion unit 222 executes steps S550 to S560, and the resolution number and RGB data (R (n)) are added to the Da5 and Da6 lines of the transfer image data. , R, G, B) = (2, 00h, 00h, 00h)). On the other hand, since the blocks C3 and C4 are not uniform, steps S535 to S545 and steps S525 and S530 are executed for each of the blocks C3 and C4, respectively.

データ変換部222は、ステップS540において、図6(D)に示すように、ブロックC3を、設定解像度R(i)を1つ上げた設定分割解像度R(3)(=600dpi)でブロックD1〜D4の4つのブロックに分割し、順に一様か否かを判断する(ステップS530)。ブロックD1〜D3については一様であるため、データ変換部222は、ブロックD1〜D3について、ステップS530、S550をそれぞれ順に実行し、転送用画像データのDa7〜Da9行目のデータに解像度番号とRGBデータ(R(n),R,G,B)=(3,00h,00h,00h))を格納する。ブロックD4については、一様でないので、ステップS535〜S545及びステップS525、S530を実行する。   In step S540, as shown in FIG. 6D, the data converter 222 converts the block C3 into blocks D1 to D1 with a set division resolution R (3) (= 600 dpi) obtained by increasing the set resolution R (i) by one. It is divided into four blocks of D4, and it is determined whether or not they are uniform in order (step S530). Since the blocks D1 to D3 are uniform, the data conversion unit 222 sequentially executes steps S530 and S550 for the blocks D1 to D3, respectively, and sets the resolution number and the data in the Da7 to Da9 lines of the transfer image data. RGB data (R (n), R, G, B) = (3, 00h, 00h, 00h)) is stored. Since the block D4 is not uniform, steps S535 to S545 and steps S525 and S530 are executed.

データ変換部222は、ステップS540において、図6(E)に示すように、ブロックD4を、設定解像度R(i)を1つ上げた設定分割解像度R(4)(=1200dpi)でブロックE1〜E4の4つのブロックに分割し、順に一様か否かを判断する(ステップS530)。ここで、ブロックE1、E3は一様であるが、ブロックE2、E4は一様でない。データ変換部222は,ブロックE1について、ステップS530、S550を実行し、転送用画像データのDa10行目のデータに解像度番号とRGBデータ(R(n),(R,G,B))=(4,00h,00h,00h))を格納する。ブロックE2については、一様でないので、ステップS535〜S545及びステップS525、S530を実行する。   In step S540, as shown in FIG. 6E, the data conversion unit 222 converts the block D4 into blocks E1 to E1 with a set division resolution R (4) (= 1200 dpi) obtained by increasing the set resolution R (i) by one. The block is divided into four blocks E4, and it is determined whether or not the blocks are uniform in order (step S530). Here, the blocks E1 and E3 are uniform, but the blocks E2 and E4 are not uniform. The data converter 222 executes Steps S530 and S550 for the block E1, and the resolution number and the RGB data (R (n), (R, G, B)) = ( 4,000h, 00h, 00h)). Since the block E2 is not uniform, steps S535 to S545 and steps S525 and S530 are executed.

データ変換部222は、ステップS540において、図7(F−1)に示すように、ブロックE2を、設定解像度R(i)を1つ上げた設定分割解像度R(5)(=2400dpi)でブロックF1〜F4の4つのブロックに分割する。ここで、ブロックF1〜F4の大きさは、ラスターデータ展開部221が生成したラスターイメージデータの1ピクセルの大きさと等しい。ラスターデータ展開部221が生成したラスターイメージデータの1ピクセルは一色であるため、ブロックF1からF4はそれぞれ一様である。データ変換部222は,ブロックF1からF4について、ステップS530、S550を実行し、転送用画像データのDa11行目からDa14行目のデータに解像度番号とRGBデータを格納する。Da11行目からDa14行目のRGBデータは、例えば、(R(n),R,G,B)=(5,00h,00h,00h))、(R(n),R,G,B)=(5,33h,33h,33h))、(R(n),R,G,B)=(5,00h,00h,00h))、(R(n),R,G,B)=(5,4Bh,4Bh,4Bh))である。なお、設定分割解像度R(i)が最高分割解像度Rmaxの場合には、ステップS530では、着目領域が一様となる。したがって、データ変換部222は、処理をステップS550に移行し、ステップS535〜S545を実行しない。   In step S540, the data conversion unit 222 blocks the block E2 at the set division resolution R (5) (= 2400 dpi) obtained by increasing the set resolution R (i) by one as shown in FIG. 7 (F-1). Divide into four blocks F1 to F4. Here, the sizes of the blocks F1 to F4 are equal to the size of one pixel of the raster image data generated by the raster data development unit 221. Since one pixel of raster image data generated by the raster data development unit 221 is one color, the blocks F1 to F4 are uniform. The data conversion unit 222 executes steps S530 and S550 for the blocks F1 to F4, and stores the resolution number and RGB data in the data on the Da11 line to the Da14 line of the transfer image data. The RGB data from the Da11 line to the Da14 line are, for example, (R (n), R, G, B) = (5,000h, 00h, 00h)), (R (n), R, G, B) = (5,33h, 33h, 33h)), (R (n), R, G, B) = (5,00h, 00h, 00h)), (R (n), R, G, B) = ( 5, 4Bh, 4Bh, 4Bh)). If the set division resolution R (i) is the highest division resolution Rmax, the region of interest is uniform in step S530. Therefore, the data conversion unit 222 moves the process to step S550 and does not execute steps S535 to S545.

ステップS560において、データ変換部222は、ブロックF4の次に、同じ設定分割解像度R(5)(2400dpi)の次のブロックがブロックE2の中に存在するか否かを判断する。このブロックは存在しないので、データ変換部222は、ステップS565において、現在の設定分割解像度R(i)が、最低分割解像度Rminであるか判断する。ここでは、現在の設定分割解像度R(5)(=2400dpi)は、最低分割解像度Rmin(=75dpi)ではないので、データ変換部222は、処理をステップS570に移行し、設定分割解像度を1つ戻してR(4)(=1200dpi)とする。そして、ステップS555において、データ変換部222は、今まで着目していたブロックF4を含むブロックE2から、ブロックE3に着目領域を移動する(図6(E)参照)。ブロックE3は、一様であるため、データ変換部222は、ブロックE3について、ステップS530、S550を実行し、転送用画像データのDa15目のデータに解像度番号とRGBデータ(R(n),R,G,B)=(4,00h,00h,00h))を格納する。そして、データ変換部222は、着目領域をブロックE4に移動する。   In step S560, the data conversion unit 222 determines whether the next block having the same set division resolution R (5) (2400 dpi) exists in the block E2 after the block F4. Since this block does not exist, in step S565, the data conversion unit 222 determines whether or not the current set division resolution R (i) is the lowest division resolution Rmin. Here, since the current set division resolution R (5) (= 2400 dpi) is not the lowest division resolution Rmin (= 75 dpi), the data conversion unit 222 shifts the processing to step S570, and sets one set division resolution. Return to R (4) (= 1200 dpi). In step S555, the data conversion unit 222 moves the region of interest to the block E3 from the block E2 including the block F4 of interest (see FIG. 6E). Since the block E3 is uniform, the data conversion unit 222 executes steps S530 and S550 for the block E3, and adds the resolution number and RGB data (R (n), R) to the Da15 data of the transfer image data. , G, B) = (4, 00h, 00h, 00h)). Then, the data conversion unit 222 moves the region of interest to the block E4.

ブロックE4は、ブロックE2と同様に、一様でないので、データ変換部222は、ブロックE4について、ブロックE2と同様の処理を行う。データ変換部222は、ブロックE2を分割したときと同様に設定分割解像度R(5)(=2400dpi)でブロックE4を分割し(ステップS545)、4つのブロックF5〜F8を得る。データ変換部222は、ブロックF5〜F8について、ブロックF1〜F4と同様に、解像度番号と、RGBデータとを、転送用画像データに格納する(ステップS550)。具体的には、これらのデータは、図8の転送用画像データのDa16〜Da20行に格納される。図7(F−2)は、図6(E)のブロックE4を、2400dpiの解像度で切った状態を示している。   Since the block E4 is not uniform like the block E2, the data conversion unit 222 performs the same processing as the block E2 on the block E4. The data converter 222 divides the block E4 at the set division resolution R (5) (= 2400 dpi) in the same manner as when the block E2 is divided (step S545), and obtains four blocks F5 to F8. For the blocks F5 to F8, the data conversion unit 222 stores the resolution number and the RGB data in the transfer image data as in the blocks F1 to F4 (step S550). Specifically, these data are stored in lines Da16 to Da20 of the transfer image data in FIG. FIG. 7F-2 shows a state in which the block E4 in FIG. 6E is cut at a resolution of 2400 dpi.

ブロックF8の同じ設定分割解像度R(5)の次のブロックは存在しないので、CPU20は、ステップS570において、設定分割解像度R(5)を設定分割解像度R(4)(=1200dpi)に戻す。この時点での着目領域は、ブロックE4(図6(E))である。設定分割解像度R(4)(=1200dpi)においても、同じ設定分割解像度R(4)の次のブロックは存在しないので、CPU20は、ステップS570において、設定分割解像度R(4)を設定分割解像度R(3)(=600dpi)に戻す。この時点での着目領域はブロックD4(図6(D))である。この設定分割解像度R(3)(=600dpi)においても、同じ設定分割解像度R(3)の次のブロックは存在しないので、CPU20は、ステップS570において、設定分割解像度R(3)を設定分割解像度R(2)(=300dpi)に戻す。この時点での着目領域はブロックC3(図6(C))である。ここでは、次の着目領域となるブロックC4が存在している。したがって、CPU20は、ブロックC4を着目領域とし、同様の処理を行う。CPU20は、この処理により得られた解像度情報及びRGBデータを、図8の転送用画像データに格納する。具体的には、これらのデータが格納される行はDa20〜Da32行である。   Since there is no block next to the same setting division resolution R (5) of the block F8, the CPU 20 returns the setting division resolution R (5) to the setting division resolution R (4) (= 1200 dpi) in step S570. The region of interest at this point is the block E4 (FIG. 6E). Even in the setting division resolution R (4) (= 1200 dpi), there is no next block of the same setting division resolution R (4). Therefore, in step S570, the CPU 20 sets the setting division resolution R (4) to the setting division resolution R. (3) Return to (= 600 dpi). The region of interest at this point is the block D4 (FIG. 6D). Even at this set division resolution R (3) (= 600 dpi), there is no next block of the same set division resolution R (3), so the CPU 20 sets the set division resolution R (3) to the set division resolution in step S570. Return to R (2) (= 300 dpi). The region of interest at this point is the block C3 (FIG. 6C). Here, the block C4 which becomes the next attention area exists. Therefore, the CPU 20 performs the same process with the block C4 as the region of interest. The CPU 20 stores the resolution information and RGB data obtained by this processing in the transfer image data of FIG. Specifically, the rows in which these data are stored are Da20 to Da32 rows.

ブロックC4の同じ設定分割解像度R(2)の次のブロックは存在しないので、CPU20は、ステップS570において、設定分割解像度R(2)を設定分割解像度R(1)(=150dpi)に戻す。この時点で着目領域は、ブロックB4(図6(B))である。この設定分割解像度R(1)(=150dpi)においても、同じ解像度の次のブロックは存在しないので、CPU20は、ステップS570において、設定分割解像度R(1)を設定分割解像度R(0)(=75dpi)に戻す。この時点での着目領域はブロックA2(図6(A))である。ここでは、次の着目領域となるブロックA3が存在している。したがって、CPU20は、ブロックA3を着目領域とし、同様の処理を行う。CPU20は、この処理により得られた解像度情報及びRGBデータは、図8の転送用画像データに格納する。具体的には、これらのデータは、転送用画像データDa33行以降に格納される。なお、図8においては、紙面の都合上、転送用画像データの一部(Da37行目まで)のデータのみが記載されている。   Since there is no block next to the same setting division resolution R (2) of the block C4, the CPU 20 returns the setting division resolution R (2) to the setting division resolution R (1) (= 150 dpi) in step S570. At this time, the region of interest is the block B4 (FIG. 6B). Even in the set division resolution R (1) (= 150 dpi), there is no next block having the same resolution, and therefore the CPU 20 sets the set division resolution R (1) to the set division resolution R (0) (= Return to 75 dpi). The region of interest at this point is the block A2 (FIG. 6A). Here, there is a block A3 that becomes the next region of interest. Therefore, the CPU 20 performs the same processing with the block A3 as the region of interest. The CPU 20 stores the resolution information and RGB data obtained by this processing in the transfer image data of FIG. Specifically, these data are stored after the transfer image data Da33 line. In FIG. 8, only a part of the transfer image data (up to the Da37 line) is shown for the sake of space.

以下、画像内の最期のブロックA16(図6(A))が着目領域になるまで、同様の処理を繰り返す。着目領域がブロックA16であり、ステップS555において着目領域を移動しようとしても、次の着目領域がなく(ステップS560)、現在の設定分割解像度R(i)が最低解像度Rminの75dpiの場合には(ステップS565)、処理を終了する。   Thereafter, the same processing is repeated until the final block A16 in the image (FIG. 6A) becomes the region of interest. If the region of interest is block A16 and an attempt is made to move the region of interest in step S555, there is no next region of interest (step S560), and the current set division resolution R (i) is 75 dpi of the minimum resolution Rmin ( Step S565), the process is terminated.

図9は、ある画像をブロック分割したときの各ブロックとそのブロックの解像度番号を示す説明図の一部である。なお、画像は、図5〜8で用いた画像と同じ画像であるが、図9では、その一部のみが示されている。図9では、最初になるべく大きなブロックを用い、それから順に小さなブロックを用いて画像を分割する様子が示されている。ここで、各ブロックの中の数字「0」から「4」は、解像度番号「R(n)」の「n」の数字である。である。なお、解像度番号「4」がついたブロックを4分割したブロック(解像度番号R(5)に相当するブロック)については、解像度番号を略した「5」が記載されていない。これは、図9上では、文字が細かくなり見難くなるため、解像度番号の記載を省略しているためである。また、図9においては、解像度番号が3以下のもの(大きなブロック)について、図8のDan行(図8に合わせてnは37まで)と対応づけて、どのブロックがどの行のデータに該当するかを記載している。   FIG. 9 is a part of an explanatory diagram showing each block and a resolution number of the block when an image is divided into blocks. The image is the same as the image used in FIGS. 5 to 8, but only a part of the image is shown in FIG. FIG. 9 shows a state in which an image is divided using as large a block as possible first, and then sequentially using smaller blocks. Here, the numbers “0” to “4” in each block are the numbers “n” of the resolution number “R (n)”. It is. Note that a block obtained by dividing a block with the resolution number “4” into four (a block corresponding to the resolution number R (5)) is not described with “5” abbreviating the resolution number. This is because the resolution number is not shown in FIG. 9 because the characters are thin and difficult to see. In addition, in FIG. 9, a block having a resolution number of 3 or less (large block) is associated with the Dan row in FIG. 8 (n is up to 37 in accordance with FIG. 8), and which block corresponds to which row of data. It describes what to do.

図10は、ブロックが一様か否かを判断するための方法の一例を示す説明図である。ブロックは、複数のピクセルP1〜Pnを有する。このピクセルP1〜Pnの大きさは、ラスターイメージデータ500(図3(A)参照)の1ピクセルと同じ大きさである。まず、ピクセルP1のRGBデータとピクセルP2のRGBデータを比較し、次いで、ピクセルP1とピクセルP3とを比較し、順にピクセルP1とピクセルPnとまで比較する。いずれかの比較において、そのRGBデータがピクセルP1のRGBデータと異なるピクセルPx(xは2〜nまでの間の整数)が存在した場合には、判断部224は、当該ブロックは複数の色を有していると判断し、データ変換部222は、設定分割解像度を上げる。判断部224は、ピクセルP1とRGBデータが異なるピクセルPxがあったことを見つけた場合には、当該ブロックにおいて、以後のピクセルについて、RGBデータの比較をやめてもよい。   FIG. 10 is an explanatory diagram illustrating an example of a method for determining whether or not a block is uniform. The block has a plurality of pixels P1 to Pn. The size of the pixels P1 to Pn is the same size as one pixel of the raster image data 500 (see FIG. 3A). First, the RGB data of the pixel P1 and the RGB data of the pixel P2 are compared, then the pixel P1 and the pixel P3 are compared, and the pixel P1 and the pixel Pn are sequentially compared. In any comparison, when there is a pixel Px (x is an integer between 2 and n) whose RGB data is different from the RGB data of the pixel P1, the determination unit 224 determines that the block has a plurality of colors. The data conversion unit 222 increases the setting division resolution. If the determination unit 224 finds that there is a pixel Px whose RGB data is different from that of the pixel P1, the determination unit 224 may stop comparing the RGB data for the subsequent pixels in the block.

A4.復元処理:
図11、図12は、図8に示す転送用画像データを用いて、画像を復元するときの様子を示す説明図である。復元処理は、画像データ伸張部12bが実行する。図11(A)では、画像データ伸張部12bは、画像全体の枠600を作成する。ラスターイメージデータの縦及び横の大きさのデータは、転送用画像データの一部に含まれている(図示せず)。そして、画像データ伸張部12bは、画像の縦及び横の大きさを用いてこの枠600を生成する。次に、画像データ伸張部12bは、転送用画像データ(図8)のDa1行目からデータを読み込んで、それぞれの解像度番号をRGBデータからブロックDbnを復元し、枠600内に配置していく。まず、画像データ伸張部12bは、枠600を解像度番号R(0)に相当する分割解像度で分割し、ブロックA1〜A16を生成する。画像データ伸張部12bは、このときの解像度番号を例えば復元解像度番号S(0)としてメモリー11に格納する。
A4. Restoration process:
FIG. 11 and FIG. 12 are explanatory diagrams showing a state when an image is restored using the transfer image data shown in FIG. The restoration process is executed by the image data decompression unit 12b. In FIG. 11A, the image data decompression unit 12b creates a frame 600 for the entire image. The raster image data having vertical and horizontal sizes is included in a part of the transfer image data (not shown). Then, the image data decompression unit 12b generates the frame 600 using the vertical and horizontal sizes of the image. Next, the image data decompression unit 12b reads the data from the Da1 line of the transfer image data (FIG. 8), restores each resolution number from the RGB data to the block Dbn, and arranges it in the frame 600. . First, the image data decompression unit 12b divides the frame 600 with a division resolution corresponding to the resolution number R (0) to generate blocks A1 to A16. The image data decompression unit 12b stores the resolution number at this time in the memory 11 as the restoration resolution number S (0), for example.

図11(B)は、画像データ伸張部12bが転送用画像データ(図8)のDa1行目のデータを用いてブロックDb1を復元し、ブロックA1の位置に配置する様子を示している。画像データ伸張部12bは、まず、Da1行目のデータを用いてブロックDb1を復元する。次に、画像データ伸張部12bは、ブロックDb1とブロックA1の大きさを比較する。この比較は、転送用画像データのDa1行目の解像度番号R(0)と、復元解像度番号S(0)とを比較することにより容易に判断することができる。本実施例では、解像度番号R(0)と復元解像度番号S(0)は、同じである。したがって、ブロックDb1をブロックA1の位置に配置する。なお、上記処理は、画像データ伸張部12bが転送用画像データからDa1行目のデータを読み込んで、解像度番号に応じた大きさのブロックDb1を復元し、解像度番号により、ブロックA1との大きさを比較し、同じであればそのブロックA1の位置に配置するだけなので、データ処理の負担は極めて少ない。なお、以下、分割したブロックについて、A1〜A16、B1〜B4等の符合を付しているが、これらの符合は、図6、図7で用いたブロックに付した符合と一致させている。   FIG. 11B shows a state in which the image data decompression unit 12b restores the block Db1 using the data on the Da1 line of the transfer image data (FIG. 8) and arranges it at the position of the block A1. The image data decompression unit 12b first restores the block Db1 using the data in the Da1 row. Next, the image data decompression unit 12b compares the sizes of the block Db1 and the block A1. This comparison can be easily determined by comparing the resolution number R (0) on the Da1 line of the transfer image data with the restored resolution number S (0). In this embodiment, the resolution number R (0) and the restored resolution number S (0) are the same. Therefore, the block Db1 is arranged at the position of the block A1. In the above processing, the image data decompression unit 12b reads the data on the first line of Da from the transfer image data, restores the block Db1 having a size corresponding to the resolution number, and the size of the block A1 based on the resolution number. If they are the same, they are only placed at the position of the block A1, so the burden of data processing is extremely small. Hereinafter, the divided blocks are denoted by codes such as A1 to A16 and B1 to B4, and these codes are matched with the codes used for the blocks used in FIGS.

図11(C)は、画像データ伸張部12bが転送用画像データ(図8)のDa2〜Da4行目のデータを用いてブロックDb2〜Db4を復元し、配置する様子を示している。まず、画像データ伸張部12bは、転送用画像データからDa2行目のデータを読み込み、ブロックDb2を復元する。画像データ伸張部12bは、ブロックDb2をブロックA2の位置に配置しようとする。しかし、このブロックDb2は、解像度番号R(1)がブロックA2の復元解像度番号S(0)よりも1つ大きい。その結果、ブロックDb2の大きさは、ブロックA2の大きさの1/4の大きさとなり、ブロックDb2の大きさは、ブロックA2の大きさと一致しない。かかる場合、画像データ伸張部12bCPU12は、ブロックA2を、2×2に分割し、復元解像度番号S(1)の4つのブロックB1〜B4を作成する(図6(B)参照)。このブロックB1〜B4の大きさは、ブロックDb2の大きさと同じである。そして、画像データ伸張部12bは、ブロックB1の位置(2×2の左上部分)にブロックDb2を配置する。なお、画像データ伸張部12bは、復元解像度番号S(i)と転送用画像データの解像度番号R(i)とを比較することにより、ブロックの大きさが一致するか否かを容易に判断することが可能である。   FIG. 11C shows a state in which the image data decompression unit 12b restores and arranges the blocks Db2 to Db4 using the data in the Da2 to Da4 rows of the transfer image data (FIG. 8). First, the image data decompression unit 12b reads Da2 line data from the transfer image data and restores the block Db2. The image data decompression unit 12b tries to arrange the block Db2 at the position of the block A2. However, the resolution number R (1) of the block Db2 is one larger than the restoration resolution number S (0) of the block A2. As a result, the size of the block Db2 is ¼ the size of the block A2, and the size of the block Db2 does not match the size of the block A2. In such a case, the image data decompression unit 12bCPU 12 divides the block A2 into 2 × 2 and creates four blocks B1 to B4 having the restoration resolution number S (1) (see FIG. 6B). The sizes of the blocks B1 to B4 are the same as the size of the block Db2. Then, the image data decompression unit 12b arranges the block Db2 at the position of the block B1 (2 × 2 upper left portion). The image data decompression unit 12b easily determines whether or not the block sizes match by comparing the restoration resolution number S (i) and the resolution number R (i) of the transfer image data. It is possible.

画像データ伸張部12bは、転送用画像データからDa3行目のデータを読み込み、ブロックDb3を復元する。このブロックDb3は、解像度番号R(1)がブロックB2の復元解像度番号S(1)と同じであり、ブロックDb3の大きさは、ブロックB2の大きさと同じである。画像データ伸張部12bは、ブロックDb3をブロックB2の位置(2×2の右上部分)に配置する。   The image data decompression unit 12b reads the data on the Da3 line from the transfer image data, and restores the block Db3. The block Db3 has the same resolution number R (1) as the restored resolution number S (1) of the block B2, and the size of the block Db3 is the same as the size of the block B2. The image data decompression unit 12b arranges the block Db3 at the position of the block B2 (2 × 2 upper right part).

画像データ伸張部12bは、転送用画像データからDa4行目のデータを読み込み、ブロックDb4を復元する。このブロックDb4は、解像度番号R(1)がブロックB3の復元解像度番号S(1)と同じであり、ブロックDb4の大きさは、ブロックB3の大きさと同じである。画像データ伸張部12bは、ブロックDb3をブロックB3の位置(2×2の左下部分)に配置する。   The image data decompression unit 12b reads Da4 line data from the transfer image data and restores the block Db4. The block Db4 has the same resolution number R (1) as the restored resolution number S (1) of the block B3, and the size of the block Db4 is the same as the size of the block B3. The image data decompression unit 12b arranges the block Db3 at the position of the block B3 (2 × 2 lower left portion).

図11(D)は、CPU12が転送用画像データ(図8)のDa5、Da6行目のデータを用いてブロックDb5、Db6を復元し、配置する様子を示している。まず、画像データ伸張部12bは、転送用画像データからDa5行目のデータを読み込み、ブロックDb5を復元する。画像データ伸張部12bは、ブロックDb5をブロックB4の位置に配置しようとする。しかし、このブロックDb5は、解像度番号R(2)がブロックB4の復元解像度番号S(1)よりも1つ大きい。したがって、ブロックDb5の大きさは、ブロックB4の大きさの1/4の大きさとなる。そこで、ブロックA1をブロックB1〜B4に分割したのと同様に、画像データ伸張部12bは、ブロックB4を、2×2に分割し、復元解像度番号S(2)の4つのブロックC1〜C4を作成し(図6(C)参照)、ブロックC1の位置(2×2の左上部分)にブロックDb5を配置する。以下、ブロックDb6についても同様にブロックC2の位置(2×2の右上部分)に配置する。   FIG. 11D shows a state in which the CPU 12 restores and arranges the blocks Db5 and Db6 using the data on the Da5 and Da6 rows of the transfer image data (FIG. 8). First, the image data decompression unit 12b reads Da5 line data from the transfer image data and restores the block Db5. The image data decompression unit 12b tries to arrange the block Db5 at the position of the block B4. However, the resolution number R (2) of the block Db5 is one larger than the restoration resolution number S (1) of the block B4. Therefore, the size of the block Db5 is ¼ the size of the block B4. Therefore, in the same manner as the block A1 is divided into the blocks B1 to B4, the image data expansion unit 12b divides the block B4 into 2 × 2, and the four blocks C1 to C4 having the restoration resolution number S (2) are divided. It is created (see FIG. 6C), and the block Db5 is placed at the position of the block C1 (2 × 2 upper left portion). Hereinafter, the block Db6 is similarly arranged at the position of the block C2 (the upper right portion of 2 × 2).

図11(E)は、画像データ伸張部12bが転送用画像データ(図8)のDa7〜Da9行目のデータを用いてブロックDb7〜Db9を復元し、ブロックC3の位置(2×2の左上、右上、左下部分、ブロックD1〜D3の位置)に配置する様子を示している(図6(D)参照)。図11(F)は、画像データ伸張部12bが転送用画像データのDa10のデータを用いてブロックDb10を復元し、ブロックD4の位置(2×2の左上部分、ブロックE1の位置)に配置する様子を示している(図6(E)参照)。なお、図11(F)は、図11(E)のXで囲った部分を拡大した図である。   In FIG. 11E, the image data decompression unit 12b restores the blocks Db7 to Db9 using the data in the Da7 to Da9 rows of the transfer image data (FIG. 8), and the position of the block C3 (the upper left of 2 × 2) , Upper right, lower left part, positions of blocks D1 to D3) (see FIG. 6D). In FIG. 11F, the image data decompression unit 12b restores the block Db10 using the data of the transfer image data Da10 and arranges it at the position of the block D4 (2 × 2 upper left portion, the position of the block E1). The situation is shown (see FIG. 6E). Note that FIG. 11F is an enlarged view of a portion surrounded by X in FIG.

図11(G)は、画像データ伸張部12bが転送用画像データ(図8)のDa11〜Da14行目のデータを用いてブロックDb10〜Db14を復元し、ブロックE2の位置に配置する様子を示している(図7(F−1)参照)。図11(H)は、画像データ伸張部12bが転送用画像データのDa15行目のデータを用いてブロックDb15を復元し、ブロックE3の位置に配置する様子を示している(図6(E)参照)。図11(I)は、画像データ伸張部12bが転送用画像データのDa16〜Da19行目のデータを用いてブロックDb16〜DB19を復元し、ブロックE4の位置に配置する様子を示している(図7(E−2)参照)。図11(J)は、画像データ伸張部12bが転送用画像データのDa20〜Da23行目のデータを用いてブロックDb20〜Db23を復元し、ブロックE5の位置に配置する様子を示している。   FIG. 11G shows a state where the image data decompression unit 12b restores the blocks Db10 to Db14 using the data on the Da11 to Da14 rows of the transfer image data (FIG. 8) and arranges them at the position of the block E2. (See FIG. 7F-1). FIG. 11H shows a state in which the image data decompression unit 12b restores the block Db15 using the data on the Da15 line of the transfer image data and arranges it at the position of the block E3 (FIG. 6E). reference). FIG. 11I shows a state in which the image data decompression unit 12b restores the blocks Db16 to DB19 using the data on the Da16 to Da19 lines of the transfer image data and arranges them at the position of the block E4 (FIG. 11). 7 (E-2)). FIG. 11J shows a state in which the image data decompression unit 12b restores the blocks Db20 to Db23 using the data on the Da20 to Da23 rows of the transfer image data and arranges them at the position of the block E5.

図12(K)は、画像データ伸張部12bが転送用画像データ(図8)のDa24行目のデータを用いてブロックDb24を復元し、ブロックE6の位置に配置する様子を示している。図12(L)は、画像データ伸張部12bが転送用画像データのDa25〜Da28行目のデータを用いてブロックDb25〜Da28を復元し、ブロックE7の位置に配置する様子を示している。図12(M)は、画像データ伸張部12bが転送用画像データのDa29行目のデータを用いてブロックDb29を復元し、ブロックE8の位置に配置する様子を示している。図12(N)は、画像データ伸張部12bが転送用画像データのDa30〜Da32行目のデータを用いてブロックDb30〜Db32を復元し、ブロックD6〜D8の位置に配置する様子を示している。図12(O)は、画像データ伸張部12bが転送用画像データのDa33〜Da37行目のデータを用いてブロックDb33〜Db37を復元し、ブロックB6、B6、C5、C6、D9の位置に配置する様子を示している。図12(O)は、図11(E)のYで囲った部分を拡大したものである。   FIG. 12K shows how the image data decompression unit 12b restores the block Db24 using the data on the Da24 line of the transfer image data (FIG. 8) and arranges it at the position of the block E6. FIG. 12 (L) shows how the image data decompression unit 12b restores the blocks Db25 to Da28 using the data in the Da25 to Da28 rows of the transfer image data and arranges them at the position of the block E7. FIG. 12M shows a state in which the image data decompression unit 12b restores the block Db29 using the data on the Da29th line of the transfer image data and arranges it at the position of the block E8. FIG. 12N shows a state in which the image data decompression unit 12b restores the blocks Db30 to Db32 using the data on the Da30 to Da32 lines of the transfer image data and arranges them at the positions of the blocks D6 to D8. . In FIG. 12 (O), the image data decompression unit 12b restores the blocks Db33 to Db37 using the data on the Da33 to Da37 lines of the transfer image data and arranges them at the positions of the blocks B6, B6, C5, C6, and D9. It shows how to do. FIG. 12 (O) is an enlarged view of a portion surrounded by Y in FIG. 11 (E).

以上、第1の実施例によれば、データ変換部222は、出来るだけ大きなブロックに画像を分割し、分割した各ブロックが一様な色で構成されているか否かを判断する。そして、分割した各ブロックが一様な色で構成されていない場合には、一様な色になるように前記ブロックをさらに細かいブロックに分割する。そして、一様なブロックごとのブロックの解像度を示す解像度番号と、ブロックの色情報と、を含む転送用画像データを生成し、複合機100に送っている。そのため、転送用画像データのデータ量を少なくすることが可能となる。また、転送用画像データを受ける複合機100の画像データ伸張部12bは、解像度番号に応じた大きさのブロックを復元し、所定の位置に配置するだけなので、画像データ伸張部12bのデータ処理の負担は、極めて少ない。また、転送用画像データからの画像の復元は可逆的であり、復元画像の画質を高品質に維持することが可能である。また、本実施例では、出来る限り大きなブロックで分割しようとするので、転送用画像データのデータ量が少なくて済む。したがって、本実施例によれば、画像情報に対して、高品質を維持しつつ、データ量を削減し、システム全体としての処理負荷を抑制することが可能となる。   As described above, according to the first embodiment, the data conversion unit 222 divides an image into as large blocks as possible, and determines whether or not each of the divided blocks is configured with a uniform color. If the divided blocks are not composed of uniform colors, the blocks are divided into finer blocks so as to obtain uniform colors. Then, transfer image data including the resolution number indicating the resolution of each uniform block and the color information of the block is generated and sent to the multifunction device 100. Therefore, it is possible to reduce the data amount of the transfer image data. Further, the image data decompression unit 12b of the multifunction peripheral 100 that receives the transfer image data only restores a block having a size corresponding to the resolution number and arranges it at a predetermined position, so that the data processing of the image data decompression unit 12b is performed. The burden is very small. In addition, the restoration of the image from the transfer image data is reversible, and the quality of the restored image can be maintained at a high quality. Further, in this embodiment, since the division is made with the largest possible block, the data amount of the transfer image data can be reduced. Therefore, according to the present embodiment, it is possible to reduce the amount of data and to suppress the processing load of the entire system while maintaining high quality for the image information.

B.第2の実施例
第2の実施例では、ラスターイメージデータを作成せずに、描画データから直接転送用画像データを作成する。図13、図14は、画像部品がベクトルデータで示されるときの、分割処理の内容を、画像を用いて説明する説明図である。第1の実施例では、画像は、ラスターイメージデータに変換されており、ラスターイメージデータは、ビットマップデータで表される。ラスターイメージデータにおける画像部品の輪郭線は、ピクセル単位で表されるため、第1の実施例では、図6、図7に示すように、例えば斜めの線は、階段状になっている。これに対し、第2の実施例では、図13、図14に示すように、ブロック分割をしても、斜めの線(画像部品の輪郭線)は、ピクセル単位で表す必要がないため、階段状にはなっていない。
B. Second Embodiment In the second embodiment, image data for transfer is created directly from drawing data without creating raster image data. FIG. 13 and FIG. 14 are explanatory diagrams for explaining the contents of the division processing when an image component is represented by vector data, using an image. In the first embodiment, the image is converted into raster image data, and the raster image data is represented by bitmap data. Since the contour lines of the image parts in the raster image data are expressed in units of pixels, in the first embodiment, for example, the diagonal lines are stepped as shown in FIGS. On the other hand, in the second embodiment, as shown in FIG. 13 and FIG. 14, even if the block is divided, the diagonal lines (the contour lines of the image parts) do not need to be expressed in units of pixels. It is not in shape.

分割のフローチャートは図5に示すフローチャートとほぼ同じである。以下、第1の実施例と異なる点を中心に説明する。ステップS510では、データ変換部222は、画像の四隅の座標を取得する。本実施例では、画像の四隅の座標は、左上が(0,0)、右上が(x1,0)左下が(0,y1)右下が(x1,y1)である。なお、データ変換部222は、描画データから画像転送用データを作成するので、ラスターイメージデータは作成しなくてもよい。   The division flowchart is almost the same as the flowchart shown in FIG. The following description will focus on the differences from the first embodiment. In step S510, the data conversion unit 222 acquires the coordinates of the four corners of the image. In the present embodiment, the coordinates of the four corners of the image are (0, 0) at the upper left, (x1, 0) at the upper right, (0, y1) at the lower left, and (x1, y1) at the lower right. Note that the data converter 222 creates image transfer data from the drawing data, so it is not necessary to create raster image data.

ステップS520のブロック分割では、データ変換部222は、ブロック分割で出来たブロックA1〜A16の四隅の座標を取得する。図13(A)に示すように、ブロックA1、A2、A5、A6が共有する点の座標を(x2、y3)、ブロックA2、A3、A6、A7が共有する点の座標を(x3、y3)とすると、例えばブロックA1の四隅の座標は、(0,0)、(x2,)、(0,y3)、(x2,y3)、ブロックA2の四隅の座標は、(x2,0)、(x3,0)、(x2,y3)(x3,y3)で表すことが可能である。なお、x2,x3、y3の値は、x1、y1とブロックの分割数を用いて容易に求めることが可能である。例えばx2=x1/4、x3=x1/2、y3=y1/4である。なお、ブロックA3〜A16についても同様に四隅の座標を求めることが出来る。なお、これらの座標は、x1、y1を用いて容易に表すことが可能である。第2の実施例では、ブロック分割は、分割後の各ブロックの四隅の座標を求めることを意味する。これらの座標は、ブロックが一様か否かを判断するときに、用いられる。   In the block division of step S520, the data conversion unit 222 acquires the coordinates of the four corners of the blocks A1 to A16 obtained by the block division. As shown in FIG. 13A, the coordinates of the points shared by the blocks A1, A2, A5, A6 are (x2, y3), and the coordinates of the points shared by the blocks A2, A3, A6, A7 are (x3, y3). ), For example, the coordinates of the four corners of the block A1 are (0, 0), (x2,), (0, y3), (x2, y3), and the coordinates of the four corners of the block A2 are (x2, 0), (X3, 0), (x2, y3) (x3, y3). Note that the values of x2, x3, and y3 can be easily obtained using x1, y1 and the number of block divisions. For example, x2 = x1 / 4, x3 = x1 / 2, and y3 = y1 / 4. Note that the coordinates of the four corners can be similarly obtained for the blocks A3 to A16. These coordinates can be easily expressed using x1 and y1. In the second embodiment, block division means obtaining coordinates of four corners of each block after division. These coordinates are used when determining whether a block is uniform.

また、ステップS545では、データ変換部222はブロックA2をブロックB1〜B4に分割する。このとき、データ変換部222は、同様にブロックB1〜B4の四隅の座標を容易に求めることができる。図13(B)では、ブロックB1〜B4の四隅が共有する点の座標を(x4,y4)としたときのブロックB1〜B4の座標を、x2、x3、x4、y3、y4を用いて示している。x4、y4は、それぞれ、x4=(x2+x3)/2、y4=y3/2で求めることが出来る。そして、上述したように、x2、y2、y4は、x1、y1を用いて表すことが出来るので、x4、y4もx1、y1を用いて表すことができ、x4=3x1/8、y4=y1/8となる。その結果、ブロックB1〜B4の座標についても同様にx1、y1を用いて表すことが可能である。データ変換部222は、以下同様に、図13(E)までブロック分割により生成した各ブロックの四隅の座標を取得する。   In step S545, the data converter 222 divides the block A2 into blocks B1 to B4. At this time, the data conversion unit 222 can easily obtain the coordinates of the four corners of the blocks B1 to B4. In FIG. 13B, the coordinates of the blocks B1 to B4 when the coordinates of the points shared by the four corners of the blocks B1 to B4 are (x4, y4) are shown using x2, x3, x4, y3, and y4. ing. x4 and y4 can be obtained by x4 = (x2 + x3) / 2 and y4 = y3 / 2, respectively. As described above, since x2, y2, and y4 can be expressed using x1 and y1, x4 and y4 can also be expressed using x1 and y1, and x4 = 3x1 / 8, y4 = y1. / 8. As a result, the coordinates of the blocks B1 to B4 can be similarly expressed using x1 and y1. Similarly, the data conversion unit 222 acquires the coordinates of the four corners of each block generated by block division up to FIG.

図14(F−1)に示すように、データ変換部222は、ブロックE2を分割解像度R(5)(2400dpi)でブロックF1〜F4に分割する。第1の実施例では、ブロックF1〜F4の大きさは、ラスターイメージデータの1ピクセルの大きさと同じであり、ブロックF1〜F4は、それぞれ一様であった。一方、第2の実施例では、ブロックF1、F3は一様であるが、ブロックF2、F4は、内部に輪郭線を示すy=f(x)の線が通っており、一様ではない。データ変換部222は、ブロックF1についてステップS530、S550を実行し、転送用画像データのDa1行目に解像度番号とRGBデータを格納する。   As shown in FIG. 14 (F-1), the data conversion unit 222 divides the block E2 into blocks F1 to F4 at the division resolution R (5) (2400 dpi). In the first embodiment, the sizes of the blocks F1 to F4 are the same as the size of one pixel of the raster image data, and the blocks F1 to F4 are uniform. On the other hand, in the second embodiment, the blocks F1 and F3 are uniform, but the blocks F2 and F4 are not uniform because a line of y = f (x) indicating a contour line passes therethrough. The data converter 222 executes steps S530 and S550 for the block F1, and stores the resolution number and RGB data in the Da1 line of the transfer image data.

ブロックF2について、y=f(x)の輪郭線の着色側を着色領域F2A、非着色側を非着色領域F2Bとする。ベクトルデータの場合、輪郭線は、関数で与えられるので、ブロックの分割解像度にかかわらず、ブロック内を輪郭線が通れば、そのブロックは、2つの色を有する。ステップS535では、データ変換部222は、現在の設定分割解像度R(i)が最高分割解像度Rmaxか否かを判断する。データ変換部222がブロックF1〜F4を生成したときの設定分割解像度R(5)は、最高分割解像度Rmax(2400dpi)と等しい。従って、データ変換部222は処理をステップS550に移行する。   Regarding the block F2, the colored side of the outline of y = f (x) is defined as a colored region F2A, and the non-colored side is defined as a non-colored region F2B. In the case of vector data, since the contour line is given by a function, if the contour line passes through the block, the block has two colors regardless of the division resolution of the block. In step S535, the data conversion unit 222 determines whether or not the current set division resolution R (i) is the highest division resolution Rmax. The set division resolution R (5) when the data conversion unit 222 generates the blocks F1 to F4 is equal to the highest division resolution Rmax (2400 dpi). Therefore, the data conversion unit 222 moves the process to step S550.

ステップS550では、データ変換部222は、ブロックF2のRGBデータを取得する。データ変換部222は、着色領域F2Aの大きさと色、及び非着色領域F2Bの大きさと色と、を用いて、ブロックF2の平均色を算出する。そして、その平均色のRGBデータを転送用画像データに格納する。データ変換部222は、ブロックF3、F4についても同様に処理を行い、RGBデータを転送用画像データに格納する。   In step S550, the data conversion unit 222 acquires RGB data of the block F2. The data converter 222 calculates the average color of the block F2 using the size and color of the colored region F2A and the size and color of the non-colored region F2B. Then, the RGB data of the average color is stored in the transfer image data. The data converter 222 performs the same processing on the blocks F3 and F4, and stores the RGB data in the transfer image data.

図14(F−3)は、ブロックE4(図13(E)参照)を設定分割解像度R(5)(2400dpi)で分割した状態を示している。図14(F−4)は、上述したブロックF1〜F4と同様に、ブロックF5〜F8をその平均色で着色した状態を示している。このように、ブロックF5〜F8をそれぞれ、平均色で着色すれば、ブロックF5〜F8はそれぞれ一様となる。   FIG. 14F-3 illustrates a state in which the block E4 (see FIG. 13E) is divided at the set division resolution R (5) (2400 dpi). FIG. 14 (F-4) shows a state in which the blocks F5 to F8 are colored with the average color as in the blocks F1 to F4 described above. Thus, if each of the blocks F5 to F8 is colored with an average color, each of the blocks F5 to F8 becomes uniform.

図15は、画像部品がベクトルデータで示されるときの、ブロックが一様か否かを判断するための方法の一例を示す説明図である。これらの判断処理は、判断部224が実行する。ベクトルデータの場合、描画される画像部品の輪郭線は、y=f(x)で表すことが可能である。ここで、x、yは、画面内の位置座標である。まず、図15(A)では、判断部224は、輪郭線がブロックの4つの辺を横切るか否かを判断する。輪郭線がブロックの4つの辺のいずれか横切る場合には、ブロックは、少なくとも2つの色を有している。したがって、かかる場合には、データ変換部222は、設定分割解像度R(i)を上げる。   FIG. 15 is an explanatory diagram illustrating an example of a method for determining whether or not a block is uniform when an image component is represented by vector data. These determination processes are executed by the determination unit 224. In the case of vector data, the contour line of the image component to be drawn can be represented by y = f (x). Here, x and y are position coordinates in the screen. First, in FIG. 15A, the determination unit 224 determines whether or not the contour line crosses four sides of the block. If the outline crosses any of the four sides of the block, the block has at least two colors. Therefore, in such a case, the data conversion unit 222 increases the set division resolution R (i).

まず、判断部224は、ブロックの四隅の座標を取得する。この座標は、上述したようにデータ変換部222がブロック分割するときに取得しているので、判断部224は、その値を取得すればよい。この四隅の座標を(xa、ya)(xb、ya)(xa、yb)(xb、yb)とする。次に、判断部224は、f(xa)がyaからybに間にある、f(xb)がyaからybに間にある、f-1(ya)がxaからxbに間にある、f-1(yb)がxaからxbに間にある、のいずれかを満たす場合には、図がブロックの4つの辺を横切っていると判断する。ここでx=f-1(y)は、y=f(x)の逆関数である。 First, the determination unit 224 acquires the coordinates of the four corners of the block. Since the coordinates are acquired when the data conversion unit 222 performs block division as described above, the determination unit 224 may acquire the value. The coordinates of the four corners are (xa, ya) (xb, ya) (xa, yb) (xb, yb). Next, the determination unit 224 determines that f (xa) is between ya and yb, f (xb) is between ya and yb, f −1 (ya) is between xa and xb, f -1 (yb) is between xa and xb, it is determined that the figure crosses the four sides of the block. Here, x = f −1 (y) is an inverse function of y = f (x).

図15(B)では、判断部224は、図がブロックの内部に存在するか否かを判断する。この判断は、図15(A)に示す4つの条件のいずれの条件も満たさない場合に実行される。判断部224は、yがyaからybの間にあり、かつ、xがxaからxbの間にあるか否かを判断する。両方を満たす場合には、輪郭線は、ブロックの中に含まれることになるので、ブロックは、少なくとも2つの色を有している。したがって、かかる場合には、データ変換部222は、設定分割解像度R(i)を上げる。復元については、第1の実施例と同じであるので、説明を省略する。   In FIG. 15B, the determination unit 224 determines whether or not the figure exists inside the block. This determination is executed when none of the four conditions shown in FIG. The determination unit 224 determines whether y is between ya and yb and x is between xa and xb. If both are satisfied, the outline will be included in the block, so the block has at least two colors. Therefore, in such a case, the data conversion unit 222 increases the set division resolution R (i). Since restoration is the same as that in the first embodiment, the description thereof is omitted.

以上、第2の実施例のように、ラスターイメージデータを作成せずに、描画データから直接転送用画像データを作成する構成を採用してもよい。この場合、ラスターイメージデータを作成する必要がない。   As described above, a configuration in which image data for transfer is created directly from drawing data without creating raster image data, as in the second embodiment, may be employed. In this case, it is not necessary to create raster image data.

C.第3の実施例:
図16は、第3の実施例を示す説明図である。第3の実施例の装置構成は、第1の実施例の構成と同じである。第1の実施例では、パーソナルコンピュータ200の分割解像度決定部223は、画像を分割するための分割解像度を決めるための解像度情報を、複合機100から取得しているが、第2の実施例では、アプリケーション実行部21が処理している画像から取得している点が異なる。
C. Third embodiment:
FIG. 16 is an explanatory diagram showing the third embodiment. The apparatus configuration of the third embodiment is the same as that of the first embodiment. In the first embodiment, the division resolution determination unit 223 of the personal computer 200 acquires resolution information for determining the division resolution for dividing the image from the multi-function peripheral 100. In the second embodiment, The difference is that the application execution unit 21 acquires the image from the image being processed.

図16(A)は、画像700を示す説明図である。画像700は、横Xピクセル、縦Yピクセルの画像である。図16(B)は、図16(A)のZで囲われた部分(左上部分)を拡大した図である。この実施例では、画像の1ピクセルの大きさは、300dpi×300dpi((1/300インチ)×(1/300インチ))である。分割解像度決定部223(図2)は、この300dpiを最高分割解像度とし、第1の実施例と同様に、画像を分割するための複数の分割解像度を求める。そして、その値は、例えば300dpi、150dpi、75dpiである。なお、最小分割解像度は、任意に定めることが出来、本実施例では、100dpi以下になったときの値を用いている。一方、分割解像度決定部223は、複合機100の最高印刷解像度2400dpiから複数の分割解像度を求めることもできる。そしてその値は、例えば2400dpi、1200dpi、600dpi、300dpi、150dpi、75dpiである。ここで両者を比較すると、300dpi以下の分割解像度で一致している。両者の分割解像度が一致するときは、分割解像度決定部223は、その分割解像度を採用する。この場合、データ変換部222は、画像の1ピクセルの解像度の2倍である600dpi以上の分割解像度で画像を分割する必要はなく、データ処理の負担を軽減することが可能となる。   FIG. 16A is an explanatory diagram showing an image 700. The image 700 is an image of horizontal X pixels and vertical Y pixels. FIG. 16B is an enlarged view of a portion (upper left portion) surrounded by Z in FIG. In this embodiment, the size of one pixel of the image is 300 dpi × 300 dpi ((1/300 inch) × (1/300 inch)). The division resolution determination unit 223 (FIG. 2) uses the 300 dpi as the highest division resolution, and obtains a plurality of division resolutions for dividing the image, as in the first embodiment. The values are, for example, 300 dpi, 150 dpi, and 75 dpi. Note that the minimum division resolution can be arbitrarily determined, and in this embodiment, a value when it becomes 100 dpi or less is used. On the other hand, the division resolution determination unit 223 can also obtain a plurality of division resolutions from the maximum print resolution 2400 dpi of the multifunction peripheral 100. The values are, for example, 2400 dpi, 1200 dpi, 600 dpi, 300 dpi, 150 dpi, and 75 dpi. Here, when both are compared, they agree at a division resolution of 300 dpi or less. When the two divided resolutions match, the divided resolution determination unit 223 adopts the divided resolution. In this case, the data conversion unit 222 does not need to divide the image with a division resolution of 600 dpi or more, which is twice the resolution of one pixel of the image, and can reduce the burden of data processing.

図16(C)は、画像の1ピクセルの解像度が400dpi×400dpiの場合を示している。分割解像度決定部223(図2)は、この400dpiを最高分割解像度として複数の分割解像度を求める。そしてその値は、例えば200dpi、100dpi、50dpiとなる。本実施例では、最小分割解像度は、100dpi以下になったときの値を用いている。一方、分割解像度決定部223は、複合機100の最高印刷解像度2400dpiから複数の分割解像度を求めることもできる。そしてその値は、例えば2400dpi、1200dpi、600dpi、300dpi、150dpi、75dpiである。ここで両者を比較すると、一致していない。かかる場合、分割解像度決定部223は、複合機100の最高印刷解像度から求めた複数の分割解像度の中に、画像の1ピクセルの大きさから求めた300dpiの解像度の整数倍の解像度があるか否かを調べる。本実施例では、1200dpi、2400dpiが該当する。分割解像度決定部223は、そのうち解像度が低い1200dpiを最高分割解像度として、複数の分割解像度、1200dpi、600dpi、300dpi、150dpi、75dpiを採用する。本実施例の場合、最高分割解像度として1200dpiを用いると、画像700の1ピクセルの大きさが、分割に用いられるブロックのうちの最小のブロックの大きさの整数倍となる。かかる場合、データ変換部222が画像を最高分割解像度1200dpiでブロック分割したときに、その1200dpiのブロックは、複数のピクセルに跨らない。一方、600dpiを最高分割解像度とした場合には、例えば図16(C)に示すようにブロックW1は、2つのピクセルに跨らないが、ブロックW2は、2つのピクセルに跨ってしまう。また、本実施例では、2400dpiの分割解像度での分割は不要であり、データ処理の負担を軽減することが可能となる。なお、複数の分割解像度を決める以外の処理は、第1の実施例と同じであるので、これらの処理については、説明を省略する。   FIG. 16C shows a case where the resolution of one pixel of the image is 400 dpi × 400 dpi. The division resolution determination unit 223 (FIG. 2) obtains a plurality of division resolutions using the 400 dpi as the highest division resolution. The values are, for example, 200 dpi, 100 dpi, and 50 dpi. In this embodiment, the value when the minimum division resolution is 100 dpi or less is used. On the other hand, the division resolution determination unit 223 can also obtain a plurality of division resolutions from the maximum print resolution 2400 dpi of the multifunction peripheral 100. The values are, for example, 2400 dpi, 1200 dpi, 600 dpi, 300 dpi, 150 dpi, and 75 dpi. When they are compared here, they do not agree. In such a case, the division resolution determination unit 223 determines whether there is a resolution that is an integer multiple of the 300 dpi resolution obtained from the size of one pixel of the image among the plurality of division resolutions obtained from the maximum print resolution of the multifunction peripheral 100. Find out. In this embodiment, 1200 dpi and 2400 dpi correspond. The divided resolution determination unit 223 employs a plurality of divided resolutions, 1200 dpi, 600 dpi, 300 dpi, 150 dpi, and 75 dpi, with 1200 dpi being the lowest resolution as the highest divided resolution. In the case of the present embodiment, when 1200 dpi is used as the maximum division resolution, the size of one pixel of the image 700 is an integral multiple of the size of the smallest block among the blocks used for division. In such a case, when the data conversion unit 222 divides the image into blocks with the highest division resolution of 1200 dpi, the 1200 dpi block does not span a plurality of pixels. On the other hand, when the highest resolution is 600 dpi, for example, as shown in FIG. 16C, the block W1 does not straddle two pixels, but the block W2 straddles two pixels. Further, in this embodiment, division at a division resolution of 2400 dpi is unnecessary, and the burden of data processing can be reduced. Since the processes other than determining a plurality of division resolutions are the same as those in the first embodiment, description of these processes will be omitted.

以上、第3の実施例によれば、パーソナルコンピュータ200が処理している画像を用いて、画像を分割するための、各解像度を取得することが可能となる。   As described above, according to the third embodiment, it is possible to acquire each resolution for dividing an image using the image processed by the personal computer 200.

D.第4の実施例:
図17は、第4の実施例を示す説明図である。第4の実施例の装置構成は、第1の実施例の構成と同じである。第4の実施例では、画像の大きさを横Xピクセル、縦Yピクセルとしたとき、分割解像度決定部223が、解像度を横と縦のピクセル数X、Yの最大公約数(GCD:Greatest Common Divisor)を基準として分割の解像度を決定している点が異なる。すなわち、画像をブロックで分割するときの最大のブロックの大きさをMピクセルとしたとき、M=GCD(X,Y)となる。そして、データ変換部222は、Mピクセル×Mピクセルのブロック毎に各ブロックが一様か否かを判断し、ブロックが一様でない場合には、そのブロックを2×2の4つの小ブロックに分割する。なお、分割後のブロックの大きさは、(M/2ピクセル)×(M/2ピクセル)となる。後は、第1の実施例の場合と同様に順に細かくブロック分割を行って、転送用画像データを生成する。なお、分割後のブロックの大きさが、Nピクセル×Nピクセル(Nは奇数)になったときは、データ変換部222は、次の分割において、N×NのN2個のブロックに分け、以後のブロック分割をやめてもよい。こうすれば、最小のブロックとして、1ピクセル×1ピクセルの大きさのブロックを用いることが可能となる。本実施例では、Mピクセル×Mピクセルのブロックが第1の実施例における最小分割解像度によるブロックに相当し、1×1ピクセルのブロックが第1の実施例における最大分割解像度のブロックに相当する。
D. Fourth embodiment:
FIG. 17 is an explanatory diagram showing the fourth embodiment. The apparatus configuration of the fourth embodiment is the same as that of the first embodiment. In the fourth embodiment, when the image size is horizontal X pixels and vertical Y pixels, the divided resolution determination unit 223 uses the greatest common divisor (GCD: Greatest Common) of the horizontal and vertical pixel numbers X and Y. The difference is that the resolution of division is determined based on (Divisionor). That is, M = GCD (X, Y) when the maximum block size when dividing an image into blocks is M pixels. Then, the data conversion unit 222 determines whether or not each block is uniform for each M pixel × M pixel block, and if the block is not uniform, the block is converted into four small blocks of 2 × 2. To divide. Note that the size of the divided blocks is (M / 2 pixels) × (M / 2 pixels). After that, similarly to the case of the first embodiment, the image data for transfer is generated by performing fine block division in order. When the size of the divided block is N pixels × N pixels (N is an odd number), the data converter 222 divides into N × N N 2 blocks in the next division, Subsequent block division may be stopped. In this way, a block having a size of 1 pixel × 1 pixel can be used as the minimum block. In this embodiment, a block of M pixels × M pixels corresponds to a block with the minimum division resolution in the first embodiment, and a block of 1 × 1 pixels corresponds to a block of the maximum division resolution in the first embodiment.

第4の実施例の場合、最大のブロックは、画像の縦方向に整数個、横方向も整数個並ぶ。すなわち、第4の実施例では、端部まで最大のブロックで分割でき、半端は生じない。したがって、特に背景が単色で、図形や文字を含む画像の場合、端部においてブロックが細かくなりすぎず、小ブロックが生じにくい。その結果、データ量を少なくすることが可能となる。また、第4の実施例では、複合機の印刷解像度を基準にしなくてもよい。   In the case of the fourth embodiment, the largest block has an integer number in the vertical direction and an integer number in the horizontal direction. That is, in the fourth embodiment, the maximum block can be divided up to the end portion, and no half end is generated. Therefore, in particular, in the case of an image having a single background and including figures and characters, the blocks are not too fine at the end portions, and small blocks are unlikely to occur. As a result, the data amount can be reduced. Further, in the fourth embodiment, the printing resolution of the multifunction peripheral need not be used as a reference.

図18は、第4の実施例の変形例を示す説明図である。第4の実施例の変形例は、第4の実施例において、最大公約数の値が予め定められた値よりも小さくなってしまう場合に適用される。すなわち、最大公約数の値が小さいと、最初に分割するブロックの大きさが小さくなってしまうので、データ量が増えてしまう。この変形例は、かかる場合に、最初に分割するブロックの大きさを大きくするものである。   FIG. 18 is an explanatory view showing a modification of the fourth embodiment. The modification of the fourth embodiment is applied when the value of the greatest common divisor becomes smaller than a predetermined value in the fourth embodiment. That is, if the value of the greatest common divisor is small, the size of the block to be divided first becomes small, and the amount of data increases. In this modification, the size of the first block to be divided is increased in such a case.

分割解像度決定部223(図2)は、まず、最大のブロックの大きさをM×Mピクセルとする。ここでMは、M=2n(nは2以上の整数、n=4〜6が好ましい)を満たす値である。2nとしたのは、ブロックを細かく分割していったときに、最小のブロックの大きさ1×1ピクセルに至るまでの各ブロックの大きさは、m×mピクセル(mは整数)になるからである。なお、Mの値は予め定められていてもよい。 The divided resolution determination unit 223 (FIG. 2) first sets the maximum block size to M × M pixels. Here, M is a value satisfying M = 2 n (n is an integer of 2 or more, preferably n = 4 to 6). The reason for 2 n is that when the block is divided finely, the size of each block up to the smallest block size of 1 × 1 pixel is m × m pixels (m is an integer). Because. Note that the value of M may be determined in advance.

データ変換部222(図2)は、画像700の大きさよりも大きな仮想空間800を作成する。仮想空間800は、最大のブロックをタイル状に並べて得られる矩形状の領域であって、画像700を包含する最小の領域である。画像700の大きさを(Xピクセル)×(Yピクセル)、最大のブロックの大きさを2nとすると、仮想空間800の大きさは、(P−1)×2n<X≦P×2n、及び(Q−1)×2n<X≦Q×2n(P、Qは整数)である。次にデータ変換部222は、仮想空間800の左上部に画像700を配置する。 The data conversion unit 222 (FIG. 2) creates a virtual space 800 that is larger than the size of the image 700. The virtual space 800 is a rectangular area obtained by arranging the largest blocks in a tile shape, and is the smallest area including the image 700. If the size of the image 700 is (X pixels) × (Y pixels) and the maximum block size is 2 n , the size of the virtual space 800 is (P−1) × 2 n <X ≦ P × 2 n and (Q-1) × 2 n <X ≦ Q × 2 n (P and Q are integers). Next, the data conversion unit 222 arranges the image 700 in the upper left part of the virtual space 800.

データ変換部222は、仮想空間800を新しい画像とみなして、第1の実施例と同様に画像を分割して、転送用画像データを作成する。なお、データ変換部222は、仮想空間800のうち、画像700が置かれていない領域(右部及び下部)については、画像700の右側エッジ、下側エッジと同じ色を有しているとみなして画像転送データを作成してもよい。なお、この転送用画像データ処理については、第1の実施例と同じであるので、説明を省略する。なお、データ変換部222がこのように処理しても、処理負担はさほど増えない。なお、復元時においても、画像700からはみ出た部分については、もとの画像700の大きさを画像転送データに含ませておけば、画像データ伸張部12bは、どの行のデータがはみ出た部分のデータか、容易に判断することが出来る。したがって、画像データ伸張部12bは、転送用画像データのうち画像700からはみ出た部分のデータを無視することにより、復元処理の負担を軽減することが可能となる。   The data converter 222 regards the virtual space 800 as a new image, divides the image as in the first embodiment, and creates transfer image data. Note that the data conversion unit 222 regards an area (right part and lower part) where the image 700 is not placed in the virtual space 800 as having the same color as the right edge and the lower edge of the image 700. Then, image transfer data may be created. Since this transfer image data processing is the same as that in the first embodiment, a description thereof will be omitted. Even if the data conversion unit 222 performs the processing in this way, the processing load does not increase so much. Even at the time of restoration, if the size of the original image 700 is included in the image transfer data for the portion that protrudes from the image 700, the image data decompression unit 12b causes the portion of the data that protrudes from which line. Can be easily determined. Therefore, the image data decompression unit 12b can reduce the load of the restoration process by ignoring the data of the portion of the transfer image data that protrudes from the image 700.

以上、第4の実施例の変形例によれば、画像700の横方向と縦方向のピクセル数であるXとYの最大公約数が小さい値の場合であっても、仮想空間800を用い、仮想空間800をできるだけ大きなブロックを用いて画像を分割する。その結果、小さなブロックの数を少なくすることが可能となる。なお、本実施例では、画像700を仮想空間800の左上角に配置しているが、他の角(右上、左下、右下)や仮想空間800の中央に配置してもよい。   As described above, according to the modification of the fourth embodiment, the virtual space 800 is used even when the greatest common divisor of X and Y, which are the number of pixels in the horizontal and vertical directions of the image 700, is a small value. The virtual space 800 is divided into images using as large blocks as possible. As a result, the number of small blocks can be reduced. In this embodiment, the image 700 is arranged at the upper left corner of the virtual space 800, but may be arranged at another corner (upper right, lower left, lower right) or the center of the virtual space 800.

E.第5の実施例:
図19は、第5の実施例を示す説明図である。第5の実施例では、複合機100の縦方向の印刷解像度と横方向の印刷解像度が異なる場合の実施例を示す説明図である。図19(A)に示す例では、複合機100の印刷解像度は、2400dpi×1200dpiである。この場合最小のブロックは、縦横比2の長方形となる。そして次に小さいブロックは、この最小ブロックが2つ合わさって正方形のブロックとなる。図19(B)に示す例では、複合機100の解像度は、4800dpi×1200dpiである。この場合最小のブロックは、縦横比4の長方形となる。そして次に小さいブロックは、この最小ブロックが4つ合わさって正方形のブロックとなる。図19(C)に示す例では、複合機100の解像度は、1200dpi×1800dpiである。この場合最小のブロックは、縦横比2/3の長方形となる。そして次に小さいブロックは、この最小ブロックが6つ合わさって正方形のブロックとなる。図19(D)に示す例では、ブロックの大きさにかかわらず、分割に用いた各ブロックの縦横比を、複合機100の解像度(2400dpi×1200dpi)の縦横比と同じにしている。この場合、ブロックの形状は、正方形にはならない。
E. Fifth embodiment:
FIG. 19 is an explanatory diagram showing the fifth embodiment. The fifth embodiment is an explanatory diagram illustrating an embodiment when the vertical print resolution and the horizontal print resolution of the multifunction peripheral 100 are different. In the example shown in FIG. 19A, the printing resolution of the multifunction peripheral 100 is 2400 dpi × 1200 dpi. In this case, the smallest block is a rectangle having an aspect ratio of 2. The next smallest block becomes a square block by combining two of the minimum blocks. In the example shown in FIG. 19B, the resolution of the multifunction peripheral 100 is 4800 dpi × 1200 dpi. In this case, the smallest block is a rectangle having an aspect ratio of 4. The next smallest block is a square block formed by combining the four smallest blocks. In the example illustrated in FIG. 19C, the resolution of the multifunction peripheral 100 is 1200 dpi × 1800 dpi. In this case, the smallest block is a rectangle having an aspect ratio of 2/3. The next smallest block is a square block formed by combining six of the minimum blocks. In the example shown in FIG. 19D, the aspect ratio of each block used for division is the same as the aspect ratio of the resolution (2400 dpi × 1200 dpi) of the multi-function device 100 regardless of the block size. In this case, the shape of the block does not become a square.

第5の実施例に示すように、複合機100の縦方向の解像度と横方向の解像度は、異なっていてもよい。また、ブロックの形状は正方形に限られず、縦横比が様々な長方形を採用することが可能である。   As shown in the fifth embodiment, the vertical resolution and the horizontal resolution of the multifunction peripheral 100 may be different. Further, the shape of the block is not limited to a square, and it is possible to adopt rectangles with various aspect ratios.

F.第6の実施例:
図20は、第6の実施例を示す説明図である。第1の実施例では、最初の分割以外の分割について、ブロックを2×2の4つのブロックにするブロック分割を行っているが、分割数はこれに限られず、3×3や、4×4のブロック分割を用いてもよい。なお、分割解像度R(1)から解像度R(2)への分割が3×3分割であれば、分割解像度R(2)から分割解像度R(3)への分割も3×3分割であるように、分割解像度を1つ上げるときの分割はすべて同じであることが分割処理の統一性から好ましいが、各段階での分割数は、異なっていてもよい。すなわち、図18に示すように、分割解像度R(1)から分割解像度R(2)への分割が3×3分割、分割解像度R(2)から分割解像度R(3)への分割が2×2分割、分割解像度R(3)から分割解像度R(4)への分割が4×4分割のように、各段階で異なっていてもよい。これにより、分割処理の柔軟性を得ることが可能となる。なお、ブロックを3×3や4×4に分割するよりも、2×2に分割するほうが、次のブロックの大きさを大きく出来るので、好ましい。なお、実施例5、6を総合すれば、ブロック分割は、2×3や、3×4など、n×m(n、mは2以上の整数)で表される様々な分割が可能である。また、縦横の解像度比を変えてもよい。
F. Sixth embodiment:
FIG. 20 is an explanatory diagram showing the sixth embodiment. In the first embodiment, for the division other than the first division, block division is performed in which the block is divided into four blocks of 2 × 2, but the number of divisions is not limited to this, and the number of divisions is 3 × 3 or 4 × 4. The block division may be used. If the division from the division resolution R (1) to the resolution R (2) is 3 × 3 division, the division from the division resolution R (2) to the division resolution R (3) is also 3 × 3 division. In addition, it is preferable from the uniformity of the division process that the divisions when the division resolution is increased by one are all the same, but the number of divisions at each stage may be different. That is, as shown in FIG. 18, the division from the division resolution R (1) to the division resolution R (2) is 3 × 3 division, and the division from the division resolution R (2) to the division resolution R (3) is 2 ×. The division into two divisions and the division resolution R (3) to the division resolution R (4) may be different at each stage such as 4 × 4 division. Thereby, it is possible to obtain the flexibility of the division process. In addition, it is preferable to divide the block into 2 × 2 rather than 3 × 3 or 4 × 4 because the size of the next block can be increased. In addition, when the fifth and sixth embodiments are combined, the block division can be divided into various divisions represented by n × m (n and m are integers of 2 or more) such as 2 × 3 and 3 × 4. . Further, the vertical / horizontal resolution ratio may be changed.

上記実施例では、パーソナルコンピュータ200から複合機100に印刷データを送ることを例にとり説明したが、ディスプレイなどの表示装置に表示データを送る場合にも適用することができる。この場合には、ディスプレイの表示解像度を、最高分割解像度としてもよい。   In the above embodiment, the print data is sent from the personal computer 200 to the multifunction peripheral 100 as an example. However, the present invention can also be applied to the case where the display data is sent to a display device such as a display. In this case, the display resolution of the display may be the highest division resolution.

以上、いくつかの実施例に基づいて本発明の実施の形態について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得るとともに、本発明にはその等価物が含まれることはもちろんである。   The embodiments of the present invention have been described above based on some examples. However, the above-described embodiments of the present invention are for facilitating the understanding of the present invention and limit the present invention. It is not a thing. The present invention can be changed and improved without departing from the spirit and scope of the claims, and it is needless to say that the present invention includes equivalents thereof.

10…制御回路
11…メモリー
12…CPU
12a…データ受信制御部
12b…画像データ伸張部
12c…色変換部
12d…ハーフトーン処理部
12e…部
13…プリンターエンジン
14…読取部
15…操作部
16…表示部
17…ネットワークインターフェース部
20…CPU
21…アプリケーション実行部
22…プリンタードライバー
31…メモリー
32…ハードディスク
34…ネットワークインターフェース部
100…複合機
150…ケーブル
200…パーソナルコンピュータ
201…コンピュータ本体
202…ディスプレイ装置
203…キーボード
204…マウス
221…ラスターデータ展開部
222…データ変換部
223…分割解像度決定部
224…判断部
225…データ送信制御部
400…画像転送システム
500…ラスターイメージデータ
501…ブロック
511…ブロック
521…ブロック
551…ブロック
600…枠
700…画像
800…仮想空間
Rmin…最低分割解像度
Rmax…最高分割解像度
Da1〜Da37…行
Db1〜Db37…ブロック
10 ... Control circuit 11 ... Memory 12 ... CPU
12a ... Data reception control unit 12b ... Image data decompression unit 12c ... Color conversion unit 12d ... Halftone processing unit 12e ... Unit 13 ... Printer engine 14 ... Reading unit 15 ... Operation unit 16 ... Display unit 17 ... Network interface unit 20 ... CPU
DESCRIPTION OF SYMBOLS 21 ... Application execution part 22 ... Printer driver 31 ... Memory 32 ... Hard disk 34 ... Network interface part 100 ... Multifunction machine 150 ... Cable 200 ... Personal computer 201 ... Computer main body 202 ... Display apparatus 203 ... Keyboard 204 ... Mouse 221 ... Raster data expansion | deployment Unit 222 ... data conversion unit 223 ... division resolution determination unit 224 ... determination unit 225 ... data transmission control unit 400 ... image transfer system 500 ... raster image data 501 ... block 511 ... block 521 ... block 551 ... block 600 ... frame 700 ... image 800 ... virtual space Rmin ... lowest division resolution Rmax ... highest division resolution Da1 to Da37 ... row Db1 to Db37 ... block

Claims (6)

画像処理装置であって、
画像を分割する際に使用する複数の分割解像度を決定する解像度決定部と、
前記複数の分割解像度に対応する複数種類のブロックを用いて前記画像を表す多解像度画像データを生成するデータ生成部と、
を備え、
前記解像度決定部は、
前記画像の縦方向のピクセル数と横方向のピクセル数の最大公約数に基づいて、前記複数の分割解像度のうち最小の分割解像度を決定し、
前記最小の分割解像度に整数を乗じた値を有するように前記複数の分割解像度を決定し、
前記データ生成部は、
前記複数種類のブロックのうち、可能な限り大きなブロックを用いて前記画像を複数の一様なブロックに分割し、
当該ブロック分割で得られたそれぞれ一様なブロックの解像度を示す解像度番号と、前記ブロックの色情報と、を含む多解像度画像データを生成する、
画像処理装置。
An image processing apparatus,
A resolution determination unit for determining a plurality of division resolutions to be used when dividing an image;
A data generation unit that generates multi-resolution image data representing the image using a plurality of types of blocks corresponding to the plurality of divided resolutions;
With
The resolution determination unit
Determining a minimum division resolution among the plurality of division resolutions based on a greatest common divisor of the number of vertical pixels and the number of horizontal pixels of the image;
Determining the plurality of division resolutions to have a value obtained by multiplying the minimum division resolution by an integer;
The data generator is
Dividing the image into a plurality of uniform blocks using the largest possible block of the plurality of types of blocks,
Generating multi-resolution image data including a resolution number indicating the resolution of each uniform block obtained by the block division and color information of the block;
Image processing device.
請求項1に記載の画像処理装置において、
前記画像データ生成部は、前記多解像度データを生成する処理において、
(a)前記複数の分割解像度のうちの最も低い分割解像度を設定分割解像度に設定するとともに、前記画像の全体を分割対象画像領域として設定し、
(b)前記設定解像度で前記分割対象画像領域を複数個のブロックに分割し、
(c)前記分割された複数個のブロックの中の1つのブロックを順に処理対象ブロックとして選択し、
(d)前記処理対象ブロックが一様か否かを判断し、
(d−1)前記処理対象ブロックが一様な場合には、前記設定分割解像度を示す解像度情報と、前記処理対象ブロックの色を示す色情報とを、前記処理対象ブロックを表す多解像度画像データとして生成するとともに、前記処理(c)に戻って前記処理(c)以降の処理を継続し、
(d−2)前記処理対象ブロックが一様でない場合に、
(d−2−1)前記設定分割解像度の次に高い分割解像度が前記複数の分割解像度のうちの最も高い分割解像度以下である場合には、前記次に高い分割解像度を新たな設定分割解像度として設定し、前記処理対象ブロックを新たな分割対象画像領域として設定するとともに、前記処理(b)に戻って前記処理(b)以降の処理を実行し、
(d−2−2)前記設定分割解像度の次に高い分割解像度が前記複数の分割解像度のうちの最も高い分割解像度を超える場合には、前記設定分割解像度を示す解像度情報と、前記処理対象ブロックの色を示す色情報とを、前記処理対象ブロックを表す多解像度画像データとして生成し、
(e)前記処理(c)において前記設定分割解像度の複数個のブロックの中の次のブロックが存在しない場合、及び、前記処理(d−2−2)が行われた場合には、前記設定分割解像度を次に低い分割解像度に設定し、前記処理(c)に戻って前記処理(c)以降の処理を実行する、
画像処理装置。
The image processing apparatus according to claim 1.
In the process of generating the multi-resolution data, the image data generation unit,
(A) setting the lowest division resolution among the plurality of division resolutions as a set division resolution, and setting the entire image as a division target image area;
(B) dividing the division target image area into a plurality of blocks at the set resolution;
(C) sequentially selecting one block among the plurality of divided blocks as a processing target block;
(D) determining whether the processing target block is uniform;
(D-1) When the processing target block is uniform, the resolution information indicating the set division resolution and the color information indicating the color of the processing target block are converted into multi-resolution image data representing the processing target block. And return to the process (c) to continue the process after the process (c),
(D-2) When the processing target block is not uniform,
(D-2-1) If the next highest division resolution of the set division resolution is equal to or lower than the highest division resolution among the plurality of division resolutions, the next highest division resolution is set as a new setting division resolution. Set and set the processing target block as a new division target image area, return to the processing (b), and execute the processing after the processing (b),
(D-2-2) When the next highest division resolution of the set division resolution exceeds the highest division resolution among the plurality of division resolutions, resolution information indicating the set division resolution and the processing target block And color information indicating the color of the multi-resolution image data representing the processing target block,
(E) In the process (c), when there is no next block among a plurality of blocks having the set division resolution and when the process (d-2-2) is performed, the setting is performed. Set the division resolution to the next lower division resolution, and return to the process (c) to execute the process after the process (c).
Image processing device.
請求項2に記載の画像処理装置において、
前記処理(d−2−1)における前記設定分割解像度と、次に高い分割解像度との比は、前記設定分割解像度の大きさにかかわらず一定の比である、画像処理装置。
The image processing apparatus according to claim 2,
The image processing apparatus, wherein a ratio between the set divided resolution and the next highest divided resolution in the process (d-2-1) is a constant ratio regardless of the size of the set divided resolution.
請求項4に記載の画像処理装置において、
前記処理(d−2−1)における前記設定分割解像度と、次に分割解像度の低い分割解像度との比は2であり、
前記処理(b)に戻ったときに、前記画像データ生成部は、前記ブロックを2×2の4ブロックに分割する、画像処理装置。
The image processing apparatus according to claim 4.
The ratio between the set division resolution in the process (d-2-1) and the division resolution with the next lowest division resolution is 2.
When returning to the processing (b), the image data generating unit divides the block into 2 × 2 4 blocks.
画像処理方法であって、
画像を分割する際に使用する複数の分割解像度を決定する工程と、
前記複数の分割解像度に対応する複数種類のブロックを用いて前記画像を表す多解像度画像データを生成する工程と、
を備え、
前記複数の分割解像度のうち最小の分割解像度は、前記画像の縦方向のピクセル数と横方向のピクセル数の最大公約数に基づいて決定され、
前記複数の分割解像度は、最小の分割解像度に整数を乗じた値を有しており、
画像データを生成する工程は、
前記複数種類のブロックのうち、可能な限り大きなブロックを用いて前記画像を複数の一様なブロックに分割する工程と、
当該ブロック分割で得られたそれぞれ一様なブロックの解像度を示す解像度番号と、前記ブロックの色情報と、を含む多解像度画像データを生成する工程と、
を有する、画像処理方法。
An image processing method comprising:
Determining a plurality of division resolutions to be used when dividing an image;
Generating multi-resolution image data representing the image using a plurality of types of blocks corresponding to the plurality of divided resolutions;
With
The minimum division resolution among the plurality of division resolutions is determined based on the greatest common divisor of the number of vertical pixels and the number of horizontal pixels of the image,
The plurality of division resolutions have a value obtained by multiplying the minimum division resolution by an integer,
The process of generating image data includes
Dividing the image into a plurality of uniform blocks using the largest possible block of the plurality of types of blocks;
Generating multi-resolution image data including a resolution number indicating the resolution of each uniform block obtained by the block division and the color information of the block;
An image processing method.
コンピュータプログラムであって、コンピュータを、
画像を分割する際に使用する複数の分割解像度を決定する手段と、
前記複数の分割解像度に対応する複数種類のブロックを用いて前記画像を表す多解像度画像データを生成する手段、
として機能させ、
前記複数の分割解像度のうち最小の分割解像度は、前記画像の縦方向のピクセル数と横方向のピクセル数の最大公約数に基づいて決定され、
前記複数の分割解像度は、最小の分割解像度に整数を乗じた値を有しており、
画像データ生成手段は、
前記複数種類のブロックのうち、可能な限り大きなブロックを用いて前記画像を複数の一様なブロックに分割する分割手段と、
当該ブロック分割で得られたそれぞれ一様なブロックの解像度を示す解像度番号と、前記ブロックの色情報と、を含む多解像度画像データを生成するデータ生成手段と、
を有する、
コンピュータプログラム。
A computer program comprising:
Means for determining a plurality of division resolutions to be used when dividing an image;
Means for generating multi-resolution image data representing the image using a plurality of types of blocks corresponding to the plurality of divided resolutions;
Function as
The minimum division resolution among the plurality of division resolutions is determined based on the greatest common divisor of the number of vertical pixels and the number of horizontal pixels of the image,
The plurality of division resolutions have a value obtained by multiplying the minimum division resolution by an integer,
The image data generation means
A dividing unit that divides the image into a plurality of uniform blocks using the largest possible block among the plurality of types of blocks;
Data generation means for generating multi-resolution image data including a resolution number indicating the resolution of each uniform block obtained by the block division and color information of the block;
Having
Computer program.
JP2009224430A 2009-09-29 2009-09-29 Apparatus and method for processing image, and computer program Pending JP2011076197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009224430A JP2011076197A (en) 2009-09-29 2009-09-29 Apparatus and method for processing image, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009224430A JP2011076197A (en) 2009-09-29 2009-09-29 Apparatus and method for processing image, and computer program

Publications (1)

Publication Number Publication Date
JP2011076197A true JP2011076197A (en) 2011-04-14

Family

ID=44020149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009224430A Pending JP2011076197A (en) 2009-09-29 2009-09-29 Apparatus and method for processing image, and computer program

Country Status (1)

Country Link
JP (1) JP2011076197A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2588696A (en) * 2019-10-30 2021-05-05 Daimler Ag Method of determining cells in a multiple resolution grid

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2588696A (en) * 2019-10-30 2021-05-05 Daimler Ag Method of determining cells in a multiple resolution grid

Similar Documents

Publication Publication Date Title
US10706340B2 (en) Image processing apparatus and method for controlling the same with character attribute indicating that pixel is pixel of a character
EP2278449A2 (en) Apparatus, method, system and storage medium for setting print status
JP2007200170A (en) Image processor and image processing program
JP4941153B2 (en) Device driver
JP2017156852A (en) Image processing device and computer program
JP2011077628A (en) Image processing apparatus, image processing method, and computer program
WO2009157233A1 (en) Computer-readable medium containing device driver
JP2015126277A (en) Image processing apparatus and image processing method
CN101346981A (en) Image processing apparatus, image processing method and image processing program product
JP2011076197A (en) Apparatus and method for processing image, and computer program
JP2004104735A (en) Image processor, generating device and printing device
JP2010171926A (en) Printing system, printing apparatus, and image printing method
JP4893198B2 (en) File generation program, image processing apparatus, and file generation method
JP7005796B2 (en) Image forming device, its control method, and program
JP7137135B2 (en) computer program and controller
JP4957605B2 (en) Image processing system, image processing apparatus, image processing method, and image processing program
JP5299253B2 (en) Image processing apparatus and image processing method
JP2008028687A (en) Unit and method for processing image, and program
JP4161975B2 (en) Pixel interpolation processing device and pixel interpolation processing program at the time of zooming reduction
JP6051526B2 (en) Image processing system, image forming apparatus, image processing program, and image processing method
JP2024029617A (en) Image processing device, control method for image processing device, and program
JP2024042401A (en) Image processing device, control method and program for the image processing device
JP6394247B2 (en) Image processing apparatus and computer program
JP2006085415A (en) Image processor, image processing method, program, and recording medium
JP5523177B2 (en) Image coding apparatus and control method thereof