JP5523226B2 - Image processing apparatus, image processing program, and image processing method - Google Patents

Image processing apparatus, image processing program, and image processing method Download PDF

Info

Publication number
JP5523226B2
JP5523226B2 JP2010152903A JP2010152903A JP5523226B2 JP 5523226 B2 JP5523226 B2 JP 5523226B2 JP 2010152903 A JP2010152903 A JP 2010152903A JP 2010152903 A JP2010152903 A JP 2010152903A JP 5523226 B2 JP5523226 B2 JP 5523226B2
Authority
JP
Japan
Prior art keywords
resolution
low
pixel
data
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010152903A
Other languages
Japanese (ja)
Other versions
JP2012015947A (en
Inventor
陽介 樫本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2010152903A priority Critical patent/JP5523226B2/en
Publication of JP2012015947A publication Critical patent/JP2012015947A/en
Application granted granted Critical
Publication of JP5523226B2 publication Critical patent/JP5523226B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置、画像処理プログラム、および画像処理方法に関するものである。   The present invention relates to an image processing apparatus, an image processing program, and an image processing method.

コンピューターグラフィックにおいて画像表示の過程におけるサンプリングによってエイリアシングの問題が発生する。このため、スーパーサンプリング法などの、エイリアシングを除去するアンチエイリアシングアルゴリズムが提案されている。   In computer graphics, sampling in the process of image display causes aliasing problems. For this reason, an anti-aliasing algorithm for removing aliasing, such as a supersampling method, has been proposed.

また、ある画像処理装置(第1画像処理装置)は、各画素がポリゴンの辺にあるか否かを判定し、辺にある画素について、フレームメモリーとは別にその画素の面積と辺の方向とを記憶し、出力時に、辺にある画素の面積と辺の方向とから正確な色を求める(例えば特許文献1参照)。   In addition, a certain image processing device (first image processing device) determines whether or not each pixel is on the side of the polygon, and for each pixel on the side, the area of the pixel and the direction of the side apart from the frame memory. Is stored, and an accurate color is obtained from the area of the pixel on the side and the direction of the side at the time of output (see, for example, Patent Document 1).

また、別の画像処理装置(第2画像処理装置)は、1画素ごとに、色データと、1画素内の微小画素のパターンを示す形状データとを生成し、出力時に、微小画素による高解像度の形状に色データによる色を適用する(例えば特許文献2参照)。   Another image processing apparatus (second image processing apparatus) generates color data and shape data indicating a pattern of a minute pixel in each pixel for each pixel, and outputs a high resolution by the minute pixel at the time of output. The color based on the color data is applied to the shape (see, for example, Patent Document 2).

特許第3609189号公報Japanese Patent No. 3609189 特開2009−169727号公報JP 2009-169727 A

しかしながら、スーパーサンプリング法には大きなメモリ領域が必要となる。また、上述の第1画像処理装置では、ポリゴンの辺の方向を計算し、ポリゴンの辺にあるすべての画素について面積と色情報を保持していく必要があるため、処理時間が長くなるとともに、大きなメモリ領域が必要となる。   However, the supersampling method requires a large memory area. Further, in the first image processing apparatus described above, it is necessary to calculate the direction of the side of the polygon and hold the area and color information for all the pixels on the side of the polygon. A large memory area is required.

また、上述の第2画像処理装置の技術は、1画素につき、微小画素の色を示す1つの色データしか持たないため、下地色が白である場合のみしか適用できない。   Further, since the technique of the second image processing apparatus described above has only one color data indicating the color of a minute pixel per pixel, it can be applied only when the background color is white.

本発明は、上記の問題に鑑みてなされたものであり、サイズが小さく、かつ、下地色が白以外でも高解像度な形状を表現可能なデータを生成する画像処理装置、画像処理プログラム、および画像処理方法を得ることを目的とする。   The present invention has been made in view of the above problem, and is an image processing apparatus, an image processing program, and an image processing apparatus that generate data that is small in size and capable of expressing a high-resolution shape even when the background color is other than white. The object is to obtain a processing method.

上記の課題を解決するために、本発明では以下のようにした。   In order to solve the above problems, the present invention is configured as follows.

本発明に係る画像処理装置は、高解像度画像データから低解像度色データを生成する低解像度色データ生成部と、高解像度画像データから低解像度画素形状データを生成する低解像度画素形状データ生成部とを備える。そして、この低解像度画素形状データは、低解像度画素形状を示すデータである。低解像度画素形状は、高解像度画素の基本画素集合の一部または全部の形状とされる。高解像度画素は、高解像度画像データの解像度での画素であり、基本画素集合は、縦および/または横において、高解像度画像データと低解像度画像データとの解像度比より多い高解像度画素を有する。そして、低解像度色データ生成部は、基本画素集合の中心に位置する高解像度画素の色が白以外である場合、基本画素集合の中心に位置する高解像度画素の色値を、低解像度色データの色値とする。さらに、低解像度画素形状データは、基本画素集合を構成する高解像度画素の数と同一ビット数のデータであり、低解像度画素形状データ生成部は、基本画素集合を構成する高解像度画素のうち、低解像度色データの色値と同一の色値を有する高解像度画素の集合の形状を低解像度画素形状とし、基本画素集合を構成する高解像度画素のうち、低解像度色データの色値と同一の色値を有する高解像度画素に対応するビットの値を0および1の一方とし、低解像度色データの色値と同一の色値を有さない高解像度画素に対応するビットの値を0および1の他方とする。 An image processing apparatus according to the present invention includes a low resolution color data generation unit that generates low resolution color data from high resolution image data, and a low resolution pixel shape data generation unit that generates low resolution pixel shape data from high resolution image data. Is provided. The low resolution pixel shape data is data indicating the low resolution pixel shape. The low-resolution pixel shape is a part or all of the basic pixel set of high-resolution pixels. The high resolution pixels are pixels at the resolution of the high resolution image data, and the basic pixel set has high resolution pixels in the vertical and / or horizontal direction that are larger than the resolution ratio of the high resolution image data and the low resolution image data. Then, when the color of the high resolution pixel located at the center of the basic pixel set is other than white, the low resolution color data generation unit converts the color value of the high resolution pixel located at the center of the basic pixel set to the low resolution color data. Color value. Furthermore, the low-resolution pixel shape data is data having the same number of bits as the number of high-resolution pixels constituting the basic pixel set, and the low-resolution pixel shape data generation unit includes, among the high-resolution pixels constituting the basic pixel set, The shape of the set of high resolution pixels having the same color value as the color value of the low resolution color data is the low resolution pixel shape, and the same color value as the color value of the low resolution color data among the high resolution pixels constituting the basic pixel set. A bit value corresponding to a high resolution pixel having a color value is set to one of 0 and 1, and a bit value corresponding to a high resolution pixel not having the same color value as that of the low resolution color data is set to 0 and 1. The other of them.

これにより、隣接する2つの低解像度画素の境界を高解像度な形状で表現することができる。したがって、サイズが小さく、かつ、下地色が白以外でも高解像度な形状を表現可能なデータを生成することができる。   Thereby, the boundary between two adjacent low-resolution pixels can be expressed in a high-resolution shape. Therefore, data capable of expressing a high-resolution shape even if the size is small and the background color is other than white can be generated.

また、本発明に係る画像処理装置は、上記の画像処理装置に加え、次のようにしてもよい。この場合、低解像度色データ生成部は、基本画素集合の中心に位置する高解像度画素の色が白である場合、基本画素集合の中心に位置する高解像度画素以外の高解像度画素の色値を所定の順番で特定していき、白以外で最初に特定された色値を、低解像度色データの色値とする。 The image processing apparatus according to the present invention, in addition to the image processing equipment described above may be as follows. In this case, when the color of the high resolution pixel located at the center of the basic pixel set is white, the low resolution color data generation unit calculates the color values of the high resolution pixels other than the high resolution pixel located at the center of the basic pixel set. The color values specified in a predetermined order and the first specified color value other than white are set as the color values of the low resolution color data.

また、本発明に係る画像処理装置は、上記の画像処理装置のいずれかに加え、次のようにしてもよい。この場合、基本画素集合の形状は、高解像度画素の複数のパターンのいずれかであって、低解像度画素の位置に応じて異なる。   The image processing apparatus according to the present invention may be as follows in addition to any of the image processing apparatuses described above. In this case, the shape of the basic pixel set is one of a plurality of patterns of high resolution pixels, and varies depending on the position of the low resolution pixels.

また、本発明に係る画像処理装置は、上記の画像処理装置のいずれかに加え、次のようにしてもよい。この場合、画像処理装置は、低解像度色データおよび低解像度画素形状データを記憶する記憶手段と、低解像度色データおよび低解像度画素形状データから高解像度画像データを生成する解像度変換部と、低解像度色データおよび低解像度画素形状データにより色値が指定されない不定画素の色値を周辺画素の色値から決定する色決定部とをさらに備える。   The image processing apparatus according to the present invention may be as follows in addition to any of the image processing apparatuses described above. In this case, the image processing apparatus includes a storage unit that stores low resolution color data and low resolution pixel shape data, a resolution conversion unit that generates high resolution image data from the low resolution color data and low resolution pixel shape data, a low resolution And a color determination unit that determines the color value of an indefinite pixel whose color value is not specified by the color data and the low-resolution pixel shape data from the color value of the surrounding pixels.

これにより、サイズの小さい画像データ(低解像度色データおよび低解像度画素形状データ)から高解像度の画像データを生成することができる。   Thereby, high-resolution image data can be generated from small-size image data (low-resolution color data and low-resolution pixel shape data).

本発明に係る画像処理プログラムは、コンピューターを、高解像度画像データから低解像度色データを生成する低解像度色データ生成部と、高解像度画像データから低解像度画素形状データを生成する低解像度画素形状データ生成部として機能させる。そして、この低解像度画素形状データは、低解像度画素形状を示すデータである。低解像度画素形状は、高解像度画素の基本画素集合の一部または全部の形状とされる。高解像度画素は、高解像度画像データの解像度での画素であり、基本画素集合は、縦および/または横において、高解像度画像データと低解像度画像データとの解像度比より多い高解像度画素を有する。そして、低解像度色データ生成部は、基本画素集合の中心に位置する高解像度画素の色が白以外である場合、基本画素集合の中心に位置する高解像度画素の色値を、低解像度色データの色値とする。さらに、低解像度画素形状データは、基本画素集合を構成する高解像度画素の数と同一ビット数のデータであり、低解像度画素形状データ生成部は、基本画素集合を構成する高解像度画素のうち、低解像度色データの色値と同一の色値を有する高解像度画素の集合の形状を低解像度画素形状とし、基本画素集合を構成する高解像度画素のうち、低解像度色データの色値と同一の色値を有する高解像度画素に対応するビットの値を0および1の一方とし、低解像度色データの色値と同一の色値を有さない高解像度画素に対応するビットの値を0および1の他方とする。 An image processing program according to the present invention includes a computer, a low resolution color data generation unit that generates low resolution color data from high resolution image data, and low resolution pixel shape data that generates low resolution pixel shape data from high resolution image data. It functions as a generator. The low resolution pixel shape data is data indicating the low resolution pixel shape. The low-resolution pixel shape is a part or all of the basic pixel set of high-resolution pixels. The high resolution pixels are pixels at the resolution of the high resolution image data, and the basic pixel set has high resolution pixels in the vertical and / or horizontal direction that are larger than the resolution ratio of the high resolution image data and the low resolution image data. Then, when the color of the high resolution pixel located at the center of the basic pixel set is other than white, the low resolution color data generation unit converts the color value of the high resolution pixel located at the center of the basic pixel set to the low resolution color data. Color value. Furthermore, the low-resolution pixel shape data is data having the same number of bits as the number of high-resolution pixels constituting the basic pixel set, and the low-resolution pixel shape data generation unit includes, among the high-resolution pixels constituting the basic pixel set, The shape of the set of high resolution pixels having the same color value as the color value of the low resolution color data is the low resolution pixel shape, and the same color value as the color value of the low resolution color data among the high resolution pixels constituting the basic pixel set. A bit value corresponding to a high resolution pixel having a color value is set to one of 0 and 1, and a bit value corresponding to a high resolution pixel not having the same color value as that of the low resolution color data is set to 0 and 1. The other of them.

これにより、隣接する2つの低解像度画素の境界を高解像度な形状で表現することができる。したがって、サイズが小さく、かつ、下地色が白以外でも高解像度な形状を表現可能なデータを生成することができる。   Thereby, the boundary between two adjacent low-resolution pixels can be expressed in a high-resolution shape. Therefore, data capable of expressing a high-resolution shape even if the size is small and the background color is other than white can be generated.

本発明に係る画像処理方法は、高解像度画像データから低解像度色データを生成する低解像度色データ生成ステップと、高解像度画像データから低解像度画素形状データを生成する低解像度形状データ生成ステップとを備える。そして、この低解像度画素形状データは、低解像度画素形状を示すデータである。低解像度画素形状は、高解像度画素の基本画素集合の一部または全部の形状とされる。高解像度画素は、高解像度画像データの解像度での画素であり、基本画素集合は、縦および/または横において、高解像度画像データと低解像度画像データとの解像度比より多い高解像度画素を有する。そして、低解像度色データ生成ステップは、基本画素集合の中心に位置する高解像度画素の色が白以外である場合、基本画素集合の中心に位置する高解像度画素の色値を、低解像度色データの色値とする。さらに、低解像度画素形状データは、基本画素集合を構成する高解像度画素の数と同一ビット数のデータであり、低解像度画素形状データ生成ステップでは、基本画素集合を構成する高解像度画素のうち、低解像度色データの色値と同一の色値を有する高解像度画素の集合の形状を低解像度画素形状とし、基本画素集合を構成する高解像度画素のうち、低解像度色データの色値と同一の色値を有する高解像度画素に対応するビットの値を0および1の一方とし、低解像度色データの色値と同一の色値を有さない高解像度画素に対応するビットの値を0および1の他方とする。
An image processing method according to the present invention includes a low resolution color data generation step for generating low resolution color data from high resolution image data, and a low resolution shape data generation step for generating low resolution pixel shape data from high resolution image data. Prepare. The low resolution pixel shape data is data indicating the low resolution pixel shape. The low-resolution pixel shape is a part or all of the basic pixel set of high-resolution pixels. The high resolution pixels are pixels at the resolution of the high resolution image data, and the basic pixel set has high resolution pixels in the vertical and / or horizontal direction that are larger than the resolution ratio of the high resolution image data and the low resolution image data. Then, in the low resolution color data generation step , when the color of the high resolution pixel located at the center of the basic pixel set is other than white, the color value of the high resolution pixel located at the center of the basic pixel set is set to the low resolution color. The color value of the data. Further, the low resolution pixel shape data is data having the same number of bits as the number of high resolution pixels constituting the basic pixel set, and in the low resolution pixel shape data generation step, among the high resolution pixels constituting the basic pixel set, The shape of the set of high resolution pixels having the same color value as the color value of the low resolution color data is the low resolution pixel shape, and the same color value as the color value of the low resolution color data among the high resolution pixels constituting the basic pixel set. A bit value corresponding to a high resolution pixel having a color value is set to one of 0 and 1, and a bit value corresponding to a high resolution pixel not having the same color value as that of the low resolution color data is set to 0 and 1. Of the other.

これにより、隣接する2つの低解像度画素の境界を高解像度な形状で表現することができる。したがって、サイズが小さく、かつ、下地色が白以外でも高解像度な形状を表現可能なデータを生成することができる。   Thereby, the boundary between two adjacent low-resolution pixels can be expressed in a high-resolution shape. Therefore, data capable of expressing a high-resolution shape even if the size is small and the background color is other than white can be generated.

本発明によれば、サイズが小さく、かつ、下地色が白以外でも高解像度な形状を表現可能なデータを生成することができる画像処理装置、画像処理プログラム、および画像処理方法を得ることができる。   According to the present invention, it is possible to obtain an image processing apparatus, an image processing program, and an image processing method that can generate data that is small in size and capable of expressing a high-resolution shape even when the background color is other than white. .

図1は、本発明の実施の形態に係る画像処理装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention. 図2は、高解像度画像データの画素配列と低解像度色データの配列との対応関係を示す図である。FIG. 2 is a diagram illustrating a correspondence relationship between a pixel array of high-resolution image data and an array of low-resolution color data. 図3は、低解像度画素に対応する基本画素集合を示す図である。FIG. 3 is a diagram illustrating a basic pixel set corresponding to a low resolution pixel. 図4は、図3に示す基本画素集合の配列を示す図である。FIG. 4 is a diagram showing the arrangement of the basic pixel set shown in FIG. 図5は、図1に示す画像処理装置による低解像度画素形状データの生成について説明するフローチャートである。FIG. 5 is a flowchart for explaining generation of low-resolution pixel shape data by the image processing apparatus shown in FIG. 図6は、図1に示す画像処理装置による低解像度色データおよび低解像度画素形状データの生成の具体例について説明する図である。FIG. 6 is a diagram illustrating a specific example of generation of low resolution color data and low resolution pixel shape data by the image processing apparatus shown in FIG. 図7は、高解像度画像データによる画像の一例を示す図である。FIG. 7 is a diagram illustrating an example of an image based on high-resolution image data. 図8は、図7に示す高解像度画像データによる画像と、低解像度画素との関係を示す図である。FIG. 8 is a diagram showing the relationship between the image by the high resolution image data shown in FIG. 7 and the low resolution pixels. 図9は、図7の高解像度画像データから従来の方法で生成された低解像度画像データによる画像の一例を示す図である。FIG. 9 is a diagram showing an example of an image by low resolution image data generated by the conventional method from the high resolution image data of FIG. 図10は、図8における領域101の低解像度色データおよび低解像度画素形状データとそれらから生成される高解像度画像データを示す図である。FIG. 10 is a diagram showing the low resolution color data and the low resolution pixel shape data of the area 101 in FIG. 8 and the high resolution image data generated therefrom. 図11は、図8における領域102の低解像度色データおよび低解像度画素形状データとそれらから生成される高解像度画像データを示す図である。FIG. 11 is a diagram showing the low resolution color data and the low resolution pixel shape data of the area 102 in FIG. 8 and the high resolution image data generated therefrom.

以下、図に基づいて本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態に係る画像処理装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention.

図1に示す画像処理装置は、演算処理装置1、記憶装置2、および画像出力装置3を有する。   The image processing apparatus illustrated in FIG. 1 includes an arithmetic processing device 1, a storage device 2, and an image output device 3.

演算処理装置1は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)1aなどを有するコンピューターであって、ROM、記憶装置2などからRAM1aへプログラムをロードして実行し、各種処理部を実現する。記憶装置2は、ハードディスクドライブ、フラッシュメモリなどの不揮発性の記憶装置であって、画像処理プログラム21などを記憶する。画像処理プログラム21は、可搬性のある記録媒体に記録しておくことができ、そのような記録媒体からこの装置へインストールするようにしてもよい。   The arithmetic processing unit 1 is a computer having a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory) 1a, etc., and loads and executes a program from the ROM, the storage device 2, etc. to the RAM 1a. Various processing units are realized. The storage device 2 is a non-volatile storage device such as a hard disk drive or a flash memory, and stores the image processing program 21 and the like. The image processing program 21 can be recorded on a portable recording medium, and may be installed in this apparatus from such a recording medium.

演算処理装置1は、画像処理プログラム21に従って、PDL(Page Description Language)データなどの入力データから低解像度画素形状データ23および低解像度色データ22を生成し、画像出力時に、低解像度画素形状データ23および低解像度色データ22を高解像度画像データへ変換する。画像出力装置3は、演算処理装置1により生成された高解像度画像データに基づいて印刷などの画像出力を実行する。   The arithmetic processing device 1 generates low-resolution pixel shape data 23 and low-resolution color data 22 from input data such as PDL (Page Description Language) data according to the image processing program 21, and outputs the low-resolution pixel shape data 23 at the time of image output. The low-resolution color data 22 is converted into high-resolution image data. The image output device 3 executes image output such as printing based on the high resolution image data generated by the arithmetic processing device 1.

この演算処理装置1は、記憶装置2に記憶されている画像処理プログラム21を実行することで、描画処理部11および画像処理部12を実現する。   The arithmetic processing device 1 implements the drawing processing unit 11 and the image processing unit 12 by executing the image processing program 21 stored in the storage device 2.

描画処理部11は、PDLデータなどの入力データから低解像度画素形状データ23および低解像度色データ22を生成する処理部である。描画処理部11では、まず、高解像度画像データが生成され、その高解像度画像データから低解像度画像データが生成される。低解像度画像データは、低解像度色データおよび低解像度画素形状データからなる。つまり、低解像度の各画素について、低解像度色データおよび低解像度画素形状データが存在する。描画処理部11は、高解像度データ生成部31、低解像度色データ生成部32、および低解像度画素形状データ生成部33を有する。   The drawing processing unit 11 is a processing unit that generates low-resolution pixel shape data 23 and low-resolution color data 22 from input data such as PDL data. In the drawing processing unit 11, first, high resolution image data is generated, and low resolution image data is generated from the high resolution image data. The low resolution image data includes low resolution color data and low resolution pixel shape data. That is, low resolution color data and low resolution pixel shape data exist for each low resolution pixel. The drawing processing unit 11 includes a high resolution data generation unit 31, a low resolution color data generation unit 32, and a low resolution pixel shape data generation unit 33.

高解像度データ生成部31は、入力データを解釈して、高解像度画像データを生成する処理部である。高解像度画像データは、所定の解像度(例えば、縦横1200dpi)のカラー画像データ(例えば、RGB各8ビット、合計24ビットのデータ)である。   The high resolution data generation unit 31 is a processing unit that interprets input data and generates high resolution image data. The high-resolution image data is color image data (for example, RGB each having 8 bits, total 24 bits of data) having a predetermined resolution (for example, vertical and horizontal 1200 dpi).

低解像度色データ生成部32は、生成された高解像度画像データから、所定の解像度(例えば、縦横600dpi)の低解像度色データ22を生成する処理部である。   The low-resolution color data generation unit 32 is a processing unit that generates the low-resolution color data 22 having a predetermined resolution (for example, 600 dpi in length and width) from the generated high-resolution image data.

低解像度画素形状データ生成部33は、生成された高解像度画像データから低解像度画素形状データ23を生成する処理部である。   The low resolution pixel shape data generation unit 33 is a processing unit that generates the low resolution pixel shape data 23 from the generated high resolution image data.

画像処理部12は、画像出力時に、低解像度画素形状データ23および低解像度色データ22を高解像度画像データへ変換する処理部である。画像処理部12は、解像度変換部41、および色決定部42を有する。   The image processing unit 12 is a processing unit that converts the low resolution pixel shape data 23 and the low resolution color data 22 into high resolution image data when outputting an image. The image processing unit 12 includes a resolution conversion unit 41 and a color determination unit 42.

解像度変換部41は、低解像度色データ22および低解像度画素形状データ23から高解像度画像データを生成する処理部である。   The resolution conversion unit 41 is a processing unit that generates high resolution image data from the low resolution color data 22 and the low resolution pixel shape data 23.

色決定部42は、低解像度色データ22および低解像度画素形状データ23により色値が指定されない不定画素の色値を周辺画素の色値から決定する処理部である。   The color determination unit 42 is a processing unit that determines the color value of an indefinite pixel whose color value is not specified by the low resolution color data 22 and the low resolution pixel shape data 23 from the color values of the peripheral pixels.

ここで、低解像度色データ22および低解像度画素形状データ23について説明する。   Here, the low resolution color data 22 and the low resolution pixel shape data 23 will be described.

図2は、高解像度画像データの画素配列と低解像度色データ22の配列との対応関係を示す図である。図2(A)は、高解像度画像データの画素配列を示す。図2(B)は、低解像度色データ22の配列を示す。図2(C)は、高解像度画像データの画素配列と低解像度色データ22の配列との対応関係を示す。   FIG. 2 is a diagram illustrating a correspondence relationship between the pixel array of the high-resolution image data and the array of the low-resolution color data 22. FIG. 2A shows a pixel array of high-resolution image data. FIG. 2B shows an arrangement of the low resolution color data 22. FIG. 2C shows the correspondence between the pixel arrangement of the high resolution image data and the arrangement of the low resolution color data 22.

高解像度画像データは、各画素について色データを有し、データ上は画素に形状の概念はない。   The high-resolution image data has color data for each pixel, and the pixel has no concept of shape on the data.

図2(B)は、低解像度色データ22の配列を示すものであって、低解像度画素の形状については、以下で説明する。   FIG. 2B shows the arrangement of the low-resolution color data 22, and the shape of the low-resolution pixels will be described below.

図2では、低解像度色データの解像度は、縦横のそれぞれにつき、高解像度画像データの解像度の半分となっている。つまり、縦および横方向(つまり副走査方向および主走査方向)において、両者の解像度比はそれぞれ2である。   In FIG. 2, the resolution of the low resolution color data is half the resolution of the high resolution image data in each of the vertical and horizontal directions. That is, in the vertical and horizontal directions (that is, the sub-scanning direction and the main scanning direction), the resolution ratio between the two is 2, respectively.

図3は、低解像度画素に対応する基本画素集合を示す図である。図4は、図3に示す基本画素集合の配列を示す図である。基本画素集合は、解像度比より多い高解像度画素の集合である。図2に示す場合、解像度比が2であり、図3に示す基本画素集合の縦および横の高解像度画素の数が3となっている。   FIG. 3 is a diagram illustrating a basic pixel set corresponding to a low resolution pixel. FIG. 4 is a diagram showing the arrangement of the basic pixel set shown in FIG. The basic pixel set is a set of high-resolution pixels larger than the resolution ratio. In the case shown in FIG. 2, the resolution ratio is 2, and the number of vertical and horizontal high resolution pixels in the basic pixel set shown in FIG.

低解像度画素形状は、基本画素集合の一部または全部の形状であり、低解像度画素形状データ23は、低解像度画素形状を示すデータである。   The low resolution pixel shape is a part or all of the shape of the basic pixel set, and the low resolution pixel shape data 23 is data indicating the low resolution pixel shape.

図3および図4に示すように、この実施の形態では、基本画素集合の形状は、高解像度画素の複数のパターンのいずれかであって、低解像度画素の位置に応じて異なる。この実施の形態では、図3に示すように、2つの基本画素集合の形状があり、縦方向および横方向において、交互に、各形状の基本画素集合が、低解像度画素Pに割り当てられている。   As shown in FIGS. 3 and 4, in this embodiment, the shape of the basic pixel set is one of a plurality of patterns of high resolution pixels, and differs depending on the position of the low resolution pixels. In this embodiment, as shown in FIG. 3, there are two basic pixel sets, and the basic pixel sets of each shape are alternately assigned to the low resolution pixels P in the vertical and horizontal directions. .

低解像度色データ生成部32は、基本画素集合の中心に位置する高解像度画素の色が白以外である場合、基本画素集合の中心に位置する高解像度画素の色値を、低解像度色データの色値とする。低解像度色データ生成部32は、基本画素集合の中心に位置する高解像度画素の色が白である場合、基本画素集合の中心に位置する高解像度画素以外の高解像度画素の色値を所定の順番で特定していき、白以外で最初に特定された色値を、低解像度色データの色値とする。ここでは図3に示す順番で、低解像度色データ生成部32は、高解像度画素の色値を特定していき、白以外で最初に特定された色値を、その低解像度画素での色値とする。   When the color of the high resolution pixel located at the center of the basic pixel set is other than white, the low resolution color data generation unit 32 uses the color value of the high resolution pixel located at the center of the basic pixel set as the low resolution color data. Let it be a color value. When the color of the high resolution pixel located at the center of the basic pixel set is white, the low resolution color data generation unit 32 determines a color value of a high resolution pixel other than the high resolution pixel located at the center of the basic pixel set as a predetermined value. The color values are specified in order, and the first color value specified other than white is set as the color value of the low resolution color data. Here, in the order shown in FIG. 3, the low resolution color data generation unit 32 specifies the color value of the high resolution pixel, and the color value first specified other than white is the color value of the low resolution pixel. And

低解像度画素形状データ生成部33は、基本画素集合を構成する高解像度画素のうち、低解像度色データの色値と同一の色値を有する高解像度画素を低解像度画素形状とする。低解像度画素形状データは、基本画素集合を構成する高解像度画素の数と同一ビット数のデータであり、低解像度画素形状データ生成部33は、基本画素集合を構成する高解像度画素のうち、低解像度色データの色値と同一の色値を有する高解像度画素に対応するビットの値を0および1の一方とし、低解像度色データの色値と同一の色値を有さない高解像度画素に対応するビットの値を0および1の他方とする。つまり、図3に示す基本画素集合の場合、1つの低解像度画素形状データは、5ビットのデータとなる。   The low resolution pixel shape data generation unit 33 sets a high resolution pixel having the same color value as the color value of the low resolution color data among the high resolution pixels constituting the basic pixel set to the low resolution pixel shape. The low resolution pixel shape data is data having the same number of bits as the number of high resolution pixels constituting the basic pixel set, and the low resolution pixel shape data generation unit 33 selects the low resolution pixel among the high resolution pixels constituting the basic pixel set. The bit value corresponding to the high resolution pixel having the same color value as the color value of the resolution color data is set to one of 0 and 1, and the high resolution pixel not having the same color value as the color value of the low resolution color data is set. The value of the corresponding bit is the other of 0 and 1. That is, in the case of the basic pixel set shown in FIG. 3, one low-resolution pixel shape data is 5-bit data.

次に、上記画像処理装置の動作について説明する。   Next, the operation of the image processing apparatus will be described.

(a)低解像度色データ22および低解像度画素形状データ23の生成 (A) Generation of low resolution color data 22 and low resolution pixel shape data 23

低解像度色データ22および低解像度画素形状データ23の生成は、描画処理部11により実行される。まず、高解像度データ生成部31は、入力データから高解像度画像データを生成する。生成された高解像度画像データは、一時的にRAM1aに記憶される。   The drawing processing unit 11 generates the low resolution color data 22 and the low resolution pixel shape data 23. First, the high resolution data generation unit 31 generates high resolution image data from input data. The generated high resolution image data is temporarily stored in the RAM 1a.

高解像度データ生成部31と、低解像度色データ生成部32および低解像度画素形状データ生成部33とは、パイプライン処理を行うようにしてもよい。つまり、低解像度色データ生成部32および低解像度画素形状データ生成部33に必要なライン分の高解像度画像データが高解像度データ生成部31により生成された時点で、低解像度色データ生成部32および低解像度画素形状データ生成部33は、その高解像度画像データからの低解像度色データおよび低解像度画素形状データの生成を開始する。そして、低解像度色データ生成部32および低解像度画素形状データ生成部33により不要になったラインの高解像度画像データはRAM1aから消去される。   The high resolution data generation unit 31, the low resolution color data generation unit 32, and the low resolution pixel shape data generation unit 33 may perform pipeline processing. That is, when the high resolution image data for the lines necessary for the low resolution color data generation unit 32 and the low resolution pixel shape data generation unit 33 is generated by the high resolution data generation unit 31, the low resolution color data generation unit 32 and The low resolution pixel shape data generation unit 33 starts generating low resolution color data and low resolution pixel shape data from the high resolution image data. Then, the high-resolution image data of the lines that are no longer needed by the low-resolution color data generation unit 32 and the low-resolution pixel shape data generation unit 33 are deleted from the RAM 1a.

そして、低解像度色データ生成部32は、上述のようにして低解像度画素の色値を決定していき、高解像度画像データから低解像度色データ22を生成する。   Then, the low resolution color data generation unit 32 determines the color value of the low resolution pixel as described above, and generates the low resolution color data 22 from the high resolution image data.

また、低解像度画素形状データ生成部33は、高解像度画像データから低解像度画素形状データ23を生成する。図5は、図1に示す画像処理装置による低解像度画素形状データ23の生成について説明するフローチャートである。   In addition, the low resolution pixel shape data generation unit 33 generates the low resolution pixel shape data 23 from the high resolution image data. FIG. 5 is a flowchart for explaining generation of the low-resolution pixel shape data 23 by the image processing apparatus shown in FIG.

図3に示す基本画素集合の場合、低解像度画素形状データ生成部33は、各低解像度画素について、以下の処理を実行する。低解像度画素形状データ生成部33は、まず、高解像度画像データから第1画素(図3において番号1の付された画素)の色を特定し(ステップS1)、その色が低解像度の色(低解像度色データ生成部32により決定されたこの画素の色)と同一であるか否かを判定し(ステップS2)、両者が同一である場合、この画素の低解像度画素形状データの第1ビットの値を1とし(ステップS3)、そうでない場合、第1ビットの値を0とする(ステップS4)。   In the case of the basic pixel set shown in FIG. 3, the low resolution pixel shape data generation unit 33 executes the following processing for each low resolution pixel. The low-resolution pixel shape data generation unit 33 first identifies the color of the first pixel (the pixel numbered 1 in FIG. 3) from the high-resolution image data (step S1), and the color is a low-resolution color (step S1). It is determined whether or not it is the same as the color of this pixel determined by the low-resolution color data generation unit 32 (step S2). If both are the same, the first bit of the low-resolution pixel shape data of this pixel 1 is set to 1 (step S3). Otherwise, the value of the first bit is set to 0 (step S4).

次に、低解像度画素形状データ生成部33は、高解像度画像データから第2画素(図3において番号2の付された画素)の色を特定し(ステップS5)、その色が低解像度の色(低解像度色データ生成部32により決定されたこの画素の色)と同一であるか否かを判定し(ステップS6)、両者が同一である場合、この画素の低解像度画素形状データの第2ビットの値を1とし(ステップS7)、そうでない場合、第2ビットの値を0とする(ステップS8)。   Next, the low-resolution pixel shape data generation unit 33 specifies the color of the second pixel (the pixel numbered 2 in FIG. 3) from the high-resolution image data (step S5), and the color is a low-resolution color. It is determined whether or not it is the same as (the color of this pixel determined by the low resolution color data generation unit 32) (step S6). If both are the same, the second low resolution pixel shape data of this pixel is determined. The value of the bit is set to 1 (step S7). Otherwise, the value of the second bit is set to 0 (step S8).

次に、低解像度画素形状データ生成部33は、高解像度画像データから第3画素(図3において番号3の付された画素)の色を特定し(ステップS9)、その色が低解像度の色(低解像度色データ生成部32により決定されたこの画素の色)と同一であるか否かを判定し(ステップS10)、両者が同一である場合、この画素の低解像度画素形状データの第3ビットの値を1とし(ステップS11)、そうでない場合、第3ビットの値を0とする(ステップS12)。   Next, the low-resolution pixel shape data generation unit 33 specifies the color of the third pixel (the pixel numbered 3 in FIG. 3) from the high-resolution image data (step S9), and the color is a low-resolution color. It is determined whether or not it is the same (the color of this pixel determined by the low resolution color data generation unit 32) (step S10). If both are the same, the third of the low resolution pixel shape data of this pixel is determined. The value of the bit is set to 1 (step S11). Otherwise, the value of the third bit is set to 0 (step S12).

次に、低解像度画素形状データ生成部33は、高解像度画像データから第4画素(図3において番号4の付された画素)の色を特定し(ステップS13)、その色が低解像度の色(低解像度色データ生成部32により決定されたこの画素の色)と同一であるか否かを判定し(ステップS14)、両者が同一である場合、この画素の低解像度画素形状データの第4ビットの値を1とし(ステップS15)、そうでない場合、第4ビットの値を0とする(ステップS16)。   Next, the low-resolution pixel shape data generation unit 33 specifies the color of the fourth pixel (the pixel numbered 4 in FIG. 3) from the high-resolution image data (step S13), and the color is a low-resolution color. It is determined whether or not it is the same as (the color of this pixel determined by the low resolution color data generation unit 32) (step S14). If both are the same, the fourth of the low resolution pixel shape data of this pixel is determined. The value of the bit is set to 1 (step S15). Otherwise, the value of the fourth bit is set to 0 (step S16).

次に、低解像度画素形状データ生成部33は、高解像度画像データから第5画素(図3において番号5の付された画素)の色を特定し(ステップS17)、その色が低解像度の色(低解像度色データ生成部32により決定されたこの画素の色)と同一であるか否かを判定し(ステップS18)、両者が同一である場合、この画素の低解像度画素形状データの第5ビットの値を1とし(ステップS19)、そうでない場合、第5ビットの値を0とする(ステップS20)。   Next, the low-resolution pixel shape data generation unit 33 specifies the color of the fifth pixel (the pixel numbered 5 in FIG. 3) from the high-resolution image data (step S17), and the color is a low-resolution color. It is determined whether or not it is the same as (the color of this pixel determined by the low resolution color data generation unit 32) (step S18). If both are the same, the fifth of the low resolution pixel shape data of this pixel is determined. The value of the bit is set to 1 (step S19). Otherwise, the value of the fifth bit is set to 0 (step S20).

図6は、図1に示す画像処理装置による低解像度色データおよび低解像度画素形状データの生成の具体例について説明する図である。図6(A)は、高解像度画像データによる色と低解像度画素Pとの配置の例を示す。図6(B)は、図6(A)に示す低解像度画素Pの色データと形状データを示す。   FIG. 6 is a diagram illustrating a specific example of generation of low resolution color data and low resolution pixel shape data by the image processing apparatus shown in FIG. FIG. 6A shows an example of the arrangement of colors and low resolution pixels P based on high resolution image data. FIG. 6B shows color data and shape data of the low resolution pixel P shown in FIG.

図6(A)に示す場合、低解像度画素P内の第1画素の色が赤(R:255,G:0,B:0)であるので、低解像度画素Pの色値は、図6(B)に示すように赤(R:255,G:0,B:0)となる。そして、低解像度画素P内の第1画素、第2画素、第3画素、および第4画素の色値は、低解像度画素Pの色値と同一であり、第5画素の色値は、低解像度画素Pの色値と同一ではないので、低解像度画素Pの形状データ(5ビット)は、11110となる。   In the case shown in FIG. 6A, since the color of the first pixel in the low resolution pixel P is red (R: 255, G: 0, B: 0), the color value of the low resolution pixel P is as shown in FIG. As shown in (B), the color is red (R: 255, G: 0, B: 0). The color values of the first pixel, the second pixel, the third pixel, and the fourth pixel in the low resolution pixel P are the same as the color value of the low resolution pixel P, and the color value of the fifth pixel is low. Since it is not the same as the color value of the resolution pixel P, the shape data (5 bits) of the low resolution pixel P is 11110.

さらに、別の具体例について説明する。   Furthermore, another specific example will be described.

図7は、高解像度画像データによる画像の一例を示す図である。図7における色C0は、白(R:255,G:255,B:255)であり、色C1は、黒(R:0,G:0,B:0)であり、色C2は、緑(R:0,G:255,B:0)であり、色C3は、青(R:0,G:0,B:255)である。図8は、図7に示す高解像度画像データによる画像と、低解像度画素との関係を示す図である。図8(A)は、低解像度画素の配列を示しており、図8(B)は、低解像度画素の色を示している。図9は、図7の高解像度画像データから従来の方法で生成された低解像度画像データによる画像の一例を示す図である。図9と図8(B)とを対比すると、両者が同一ではないことがわかる。   FIG. 7 is a diagram illustrating an example of an image based on high-resolution image data. The color C0 in FIG. 7 is white (R: 255, G: 255, B: 255), the color C1 is black (R: 0, G: 0, B: 0), and the color C2 is green. (R: 0, G: 255, B: 0), and the color C3 is blue (R: 0, G: 0, B: 255). FIG. 8 is a diagram showing the relationship between the image by the high resolution image data shown in FIG. 7 and the low resolution pixels. FIG. 8A shows an array of low resolution pixels, and FIG. 8B shows the color of the low resolution pixels. FIG. 9 is a diagram showing an example of an image by low resolution image data generated by the conventional method from the high resolution image data of FIG. When FIG. 9 and FIG. 8B are compared, it can be seen that they are not the same.

(b)低解像度色データ22および低解像度画素形状データ23からの高解像度画像データの生成 (B) Generation of high-resolution image data from the low-resolution color data 22 and the low-resolution pixel shape data 23

低解像度色データ22および低解像度画素形状データ23からの高解像度画像データの生成は、画像処理部12により実行される。   Generation of high resolution image data from the low resolution color data 22 and the low resolution pixel shape data 23 is executed by the image processing unit 12.

解像度変換部41は、順番に低解像度画素の色データ22および形状データ23を読み出し、低解像度画素について形状データ23から形状を特定し、低解像度画素に対応する高解像度画素の色値に、その低解像度画素の色データ22による色値をセットする。   The resolution conversion unit 41 sequentially reads the color data 22 and the shape data 23 of the low resolution pixels, specifies the shape from the shape data 23 for the low resolution pixels, and converts the color values of the high resolution pixels corresponding to the low resolution pixels to The color value based on the color data 22 of the low resolution pixel is set.

このとき、5ビットの低解像度画素形状データ23が第1ビットから第5ビットへ順番に参照されていき、最初に値1のビットが出現するまでの値0のビットに対応する高解像度画素の色値は、白(R:255,G:255,B:255)とされる。他方、値1のビットが出現した後に出現する値0のビットに対応する高解像度画素の色値は、不定のままとする。色値が不定の高解像度画素の色値は、隣接する低解像度画素の色データ22および形状データ23から特定されるか、不定のまま残る。   At this time, the 5-bit low-resolution pixel shape data 23 is sequentially referred from the first bit to the fifth bit, and the high-resolution pixel corresponding to the bit having the value 0 until the bit having the value 1 first appears. The color value is white (R: 255, G: 255, B: 255). On the other hand, the color value of the high-resolution pixel corresponding to the bit of value 0 that appears after the bit of value 1 appears remains indefinite. The color value of the high-resolution pixel whose color value is indefinite is specified from the color data 22 and the shape data 23 of the adjacent low-resolution pixel, or remains indefinite.

図10は、図8における領域101の低解像度色データ22および低解像度画素形状データ23とそれらから生成される高解像度画像データを示す図である。図10(A)は、領域101の低解像度色データ22を示し、領域101の低解像度画素形状データ23を示す。   FIG. 10 is a diagram showing the low-resolution color data 22 and the low-resolution pixel shape data 23 in the region 101 in FIG. 8 and the high-resolution image data generated from them. FIG. 10A shows the low resolution color data 22 of the area 101 and the low resolution pixel shape data 23 of the area 101.

図10(C)は、図10(A),(B)に示す低解像度色データ22および低解像度画素形状データ23から生成される高解像度画像データを示す図である。図10(C)において、色値Gは緑(R:0,G:255,B:0)を意味し、色値Wは白(R:255,G:255,B:255)を意味し、色値Kは黒(R:0,G:0,B:0)を意味する。そして、図10(C)におけるハッチが施されている画素の色値は、不定のままである。   FIG. 10C is a diagram showing high resolution image data generated from the low resolution color data 22 and the low resolution pixel shape data 23 shown in FIGS. 10A and 10B. In FIG. 10C, the color value G means green (R: 0, G: 255, B: 0), and the color value W means white (R: 255, G: 255, B: 255). The color value K means black (R: 0, G: 0, B: 0). Then, the color value of the hatched pixel in FIG. 10C remains indefinite.

図11は、図8における領域102の低解像度色データ22および低解像度画素形状データ23とそれらから生成される高解像度画像データを示す図である。図11(A)は、領域102の低解像度色データ22を示し、領域102の低解像度画素形状データ23を示す。   FIG. 11 is a diagram showing the low resolution color data 22 and the low resolution pixel shape data 23 in the area 102 in FIG. 8 and the high resolution image data generated from them. FIG. 11A shows the low-resolution color data 22 of the area 102 and the low-resolution pixel shape data 23 of the area 102.

図11(C)は、図11(A),(B)に示す低解像度色データ22および低解像度画素形状データ23から生成される高解像度画像データを示す図である。図11(C)において、色値Gは緑(R:0,G:255,B:0)を意味し、色値Bは青(R:0,G:0,B:255)を意味し、色値Kは黒(R:0,G:0,B:0)を意味する。そして、図11(C)におけるハッチが施されている画素の色値は、不定のままである。   FIG. 11C is a diagram showing high resolution image data generated from the low resolution color data 22 and the low resolution pixel shape data 23 shown in FIGS. 11A and 11B. In FIG. 11C, the color value G means green (R: 0, G: 255, B: 0), and the color value B means blue (R: 0, G: 0, B: 255). The color value K means black (R: 0, G: 0, B: 0). The color value of the hatched pixel in FIG. 11C remains indefinite.

上述のように色値が不定のまま残った高解像度画素について、色決定部42は、その色値を決定する。このとき、色決定部42は、その高解像度画素の周辺画素の色値から、その高解像度画素の色値を決定する。ただし、色値が特定されない高解像度画素が属する低解像度画素の色値以外の色値が、この高解像度画素の色値とされる。   As described above, the color determination unit 42 determines the color value of the high resolution pixel in which the color value remains indefinite. At this time, the color determination unit 42 determines the color value of the high resolution pixel from the color values of the peripheral pixels of the high resolution pixel. However, a color value other than the color value of the low-resolution pixel to which the high-resolution pixel whose color value is not specified belongs as the color value of this high-resolution pixel.

例えば、色決定部42は、その画素の色値を、周辺画素の色値のうち、所定の方向(右、左、上、下など)に隣接する画素の色値と同一としたり、隣接するすべての画素のうち、画素数の最も多い色値と同一としたり、周辺画素に対してエッジ検出を行い、エッジの延長線上にその画素がある場合には、そのエッジの色値と同一としたりする。   For example, the color determination unit 42 makes the color value of the pixel the same as or adjacent to the color value of a pixel adjacent in a predetermined direction (right, left, upper, lower, etc.) among the color values of the peripheral pixels. Of all the pixels, the color value is the same as the color value with the largest number of pixels, or edge detection is performed on the surrounding pixels, and if the pixel is on the extension line of the edge, the color value is the same as the color value of the edge. To do.

このようにして、高解像度画像データが生成されると、画像出力装置3は、その高解像度画像データに基づいて印刷などを実行する。   When the high-resolution image data is generated in this way, the image output device 3 executes printing or the like based on the high-resolution image data.

以上のように、上記実施の形態によれば、低解像度色データ生成部32は、高解像度画像データから低解像度色データ22を生成する。低解像度画素形状データ生成部33は、高解像度画像データから低解像度画素形状データ23を生成する。この低解像度画素形状データは、縦および/または横において解像度比より多い高解像度画素の基本画素集合の一部または全部の形状である低解像度画素形状を示すデータである。   As described above, according to the embodiment described above, the low resolution color data generation unit 32 generates the low resolution color data 22 from the high resolution image data. The low resolution pixel shape data generation unit 33 generates the low resolution pixel shape data 23 from the high resolution image data. The low-resolution pixel shape data is data indicating a low-resolution pixel shape that is a shape of a part or all of a basic pixel set of high-resolution pixels larger than the resolution ratio in the vertical and / or horizontal directions.

これにより、隣接する2つの低解像度画素の境界を高解像度な形状で表現することができる。したがって、サイズが小さく、かつ、下地色が白以外でも高解像度な形状を表現可能なデータを生成することができる。   Thereby, the boundary between two adjacent low-resolution pixels can be expressed in a high-resolution shape. Therefore, data capable of expressing a high-resolution shape even if the size is small and the background color is other than white can be generated.

例えば、縦横12画素の高解像度画像データのサイズは、3456ビット(=12×12×24ビット)であり、対応する縦横6画素の低解像度色データのサイズは、864ビット(=6×6×24ビット)であり、低解像度画素形状データのサイズは、180ビット(=6×6×5ビット)である。   For example, the size of the high resolution image data of 12 pixels in the vertical and horizontal directions is 3456 bits (= 12 × 12 × 24 bits), and the size of the corresponding low resolution color data of 6 pixels in the vertical and horizontal directions is 864 bits (= 6 × 6 ×). 24 bits), and the size of the low resolution pixel shape data is 180 bits (= 6 × 6 × 5 bits).

さらに、文字やベクター図形など、高画質が要求される箇所について画像の重ね合わせが行われて、白以外の複数色の境界があるような場合であっても、サイズが小さい低解像度データ(低解像度色データおよび低解像度画素形状データ)から高解像度の画像データを再生することができ、出力画像の画質が向上する。   Furthermore, even when there are multiple color borders other than white, such as text and vector graphics, where high image quality is required, images are overlaid and low resolution data (low High-resolution image data can be reproduced from the resolution color data and low-resolution pixel shape data), and the image quality of the output image is improved.

このように、高解像度で画像出力を行えるため、エイリアシングが低減される。   Thus, since image output can be performed with high resolution, aliasing is reduced.

なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。   The above-described embodiments are preferred examples of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. is there.

例えば、上記実施の形態における色値の例は、説明を簡単にするため、R、G、Bの単色としているが、その他の色値でも勿論よい。   For example, the example of the color value in the above embodiment is a single color of R, G, and B for the sake of simplicity of explanation, but other color values may of course be used.

本発明は、例えば、プリンター、複合機などの画像形成装置に適用可能である。   The present invention is applicable to an image forming apparatus such as a printer or a multifunction peripheral.

1 演算処理装置(コンピューターの一例)
1a RAM(記憶手段の一例)
22 低解像度色データ
23 低解像度画素形状データ
32 低解像度色データ生成部
33 低解像度画素形状データ生成部
41 解像度変換部
42 色決定部
1. Arithmetic processing device (an example of a computer)
1a RAM (an example of storage means)
22 Low-resolution color data 23 Low-resolution pixel shape data 32 Low-resolution color data generation unit 33 Low-resolution pixel shape data generation unit 41 Resolution conversion unit 42 Color determination unit

Claims (6)

高解像度画像データから低解像度画像データとして低解像度色データおよび低解像度画素形状データを生成する画像処理装置において、
前記高解像度画像データから前記低解像度色データを生成する低解像度色データ生成部と、
前記高解像度画像データから前記低解像度画素形状データを生成する低解像度画素形状データ生成部とを備え、
前記低解像度画素形状データは、低解像度画素形状を示すデータであり、
前記低解像度画素形状は、高解像度画素の基本画素集合の一部または全部の形状とされ、
前記高解像度画素は、前記高解像度画像データの解像度での画素であり、
前記基本画素集合は、縦および/または横において、前記高解像度画像データと前記低解像度画像データとの解像度比より多い前記高解像度画素を有し、
前記低解像度色データ生成部は、前記基本画素集合の中心に位置する前記高解像度画素の色が白以外である場合、前記基本画素集合の中心に位置する前記高解像度画素の色値を、前記低解像度色データの色値とし、
前記低解像度画素形状データは、前記基本画素集合を構成する前記高解像度画素の数と同一ビット数のデータであり、
前記低解像度画素形状データ生成部は、前記基本画素集合を構成する前記高解像度画素のうち、前記低解像度色データの色値と同一の色値を有する前記高解像度画素の集合の形状を前記低解像度画素形状とし、前記基本画素集合を構成する前記高解像度画素のうち、前記低解像度色データの色値と同一の色値を有する前記高解像度画素に対応するビットの値を0および1の一方とし、前記低解像度色データの色値と同一の色値を有さない前記高解像度画素に対応するビットの値を0および1の他方とすること、
を特徴とする画像処理装置。
In an image processing apparatus that generates low resolution color data and low resolution pixel shape data as low resolution image data from high resolution image data,
A low-resolution color data generation unit that generates the low-resolution color data from the high-resolution image data;
A low-resolution pixel shape data generation unit that generates the low-resolution pixel shape data from the high-resolution image data,
The low resolution pixel shape data is data indicating a low resolution pixel shape,
The low resolution pixel shape is a part or all of a basic pixel set of high resolution pixels,
The high resolution pixel is a pixel at a resolution of the high resolution image data,
The basic pixel set includes the high-resolution pixels that are larger in the vertical and / or horizontal direction than the resolution ratio of the high-resolution image data and the low-resolution image data.
The low resolution color data generation unit, when the color of the high resolution pixel located at the center of the basic pixel set is other than white, the color value of the high resolution pixel located at the center of the basic pixel set, As the color value of low resolution color data ,
The low resolution pixel shape data is data having the same number of bits as the number of the high resolution pixels constituting the basic pixel set,
The low resolution pixel shape data generation unit converts the shape of the set of high resolution pixels having the same color value as the color value of the low resolution color data among the high resolution pixels constituting the basic pixel set to the low resolution pixel. One of 0 and 1 is set to a bit value corresponding to the high resolution pixel having the same color value as the color value of the low resolution color data among the high resolution pixels constituting the basic pixel set and having a resolution pixel shape. The bit value corresponding to the high-resolution pixel not having the same color value as the color value of the low-resolution color data is the other of 0 and 1,
An image processing apparatus.
前記低解像度色データ生成部は、前記基本画素集合の中心に位置する前記高解像度画素の色が白である場合、前記基本画素集合の中心に位置する前記高解像度画素以外の前記高解像度画素の色値を所定の順番で特定していき、白以外で最初に特定された色値を、前記低解像度色データの色値とすることを特徴とする請求項1記載の画像処理装置。   When the color of the high-resolution pixel located at the center of the basic pixel set is white, the low-resolution color data generation unit generates a high-resolution pixel other than the high-resolution pixel located at the center of the basic pixel set. 2. The image processing apparatus according to claim 1, wherein color values are specified in a predetermined order, and a color value first specified other than white is set as a color value of the low resolution color data. 前記基本画素集合の形状は、前記高解像度画素の複数のパターンのいずれかであって、前記低解像度画素の位置に応じて異なることを特徴とする請求項1または請求項2記載の画像処理装置。 3. The image processing apparatus according to claim 1, wherein a shape of the basic pixel set is one of a plurality of patterns of the high resolution pixels, and is different depending on a position of the low resolution pixels. . 前記低解像度色データおよび前記低解像度画素形状データを記憶する記憶手段と、
前記低解像度色データおよび前記低解像度画素形状データから前記高解像度画像データを生成する解像度変換部と、
前記前記低解像度色データおよび前記低解像度画素形状データにより色値が指定されない不定画素の色値を周辺画素の色値から決定する色決定部と、
を備えることを特徴とする請求項1から請求項のうちのいずれか1項記載の画像処理装置。
Storage means for storing the low resolution color data and the low resolution pixel shape data;
A resolution converter that generates the high-resolution image data from the low-resolution color data and the low-resolution pixel shape data;
A color determining unit that determines a color value of an indefinite pixel whose color value is not specified by the low-resolution color data and the low-resolution pixel shape data from color values of surrounding pixels;
The image processing apparatus according to any one of claims 1 to 3, characterized in that it comprises a.
コンピュータで高解像度画像データから低解像度画像データとして低解像度色データおよび低解像度画素形状データを生成させる画像処理プログラムにおいて、

コンピュータを、前記高解像度画像データから前記低解像度色データを生成する低解像度色データ生成部と、前記高解像度画像データから低解像度画素形状データを生成する低解像度画素形状データ生成部として機能させ、
前記低解像度画素形状データは、低解像度画素形状を示すデータであり、
前記低解像度画素形状は、高解像度画素の基本画素集合の一部または全部の形状とされ、
前記高解像度画素は、前記高解像度画像データの解像度での画素であり、
前記基本画素集合は、縦および/または横において、前記高解像度画像データと前記低解像度画像データとの解像度比より多い前記高解像度画素を有し、
前記低解像度色データ生成部は、前記基本画素集合の中心に位置する前記高解像度画素の色が白以外である場合、前記基本画素集合の中心に位置する前記高解像度画素の色値を、前記低解像度色データの色値とし、
前記低解像度画素形状データは、前記基本画素集合を構成する前記高解像度画素の数と同一ビット数のデータであり、
前記低解像度画素形状データ生成部は、前記基本画素集合を構成する前記高解像度画素のうち、前記低解像度色データの色値と同一の色値を有する前記高解像度画素の集合の形状を前記低解像度画素形状とし、前記基本画素集合を構成する前記高解像度画素のうち、前記低解像度色データの色値と同一の色値を有する前記高解像度画素に対応するビットの値を0および1の一方とし、前記低解像度色データの色値と同一の色値を有さない前記高解像度画素に対応するビットの値を0および1の他方とすること、
を特徴とする画像処理プログラム。
In an image processing program for generating low-resolution color data and low-resolution pixel shape data as low-resolution image data from high-resolution image data on a computer,

Causing a computer to function as a low resolution color data generation unit that generates the low resolution color data from the high resolution image data, and a low resolution pixel shape data generation unit that generates low resolution pixel shape data from the high resolution image data;
The low resolution pixel shape data is data indicating a low resolution pixel shape,
The low resolution pixel shape is a part or all of a basic pixel set of high resolution pixels,
The high resolution pixel is a pixel at a resolution of the high resolution image data,
The basic pixel set includes the high-resolution pixels that are larger in the vertical and / or horizontal direction than the resolution ratio of the high-resolution image data and the low-resolution image data.
The low resolution color data generation unit, when the color of the high resolution pixel located at the center of the basic pixel set is other than white, the color value of the high resolution pixel located at the center of the basic pixel set, As the color value of low resolution color data ,
The low resolution pixel shape data is data having the same number of bits as the number of the high resolution pixels constituting the basic pixel set,
The low resolution pixel shape data generation unit converts the shape of the set of high resolution pixels having the same color value as the color value of the low resolution color data among the high resolution pixels constituting the basic pixel set to the low resolution pixel. One of 0 and 1 is set to a bit value corresponding to the high resolution pixel having the same color value as the color value of the low resolution color data among the high resolution pixels constituting the basic pixel set and having a resolution pixel shape. The bit value corresponding to the high-resolution pixel not having the same color value as the color value of the low-resolution color data is the other of 0 and 1,
An image processing program characterized by the above.
高解像度画像データから低解像度画像データとして低解像度色データおよび低解像度画素形状データを生成する画像処理方法において、
前記高解像度画像データから前記低解像度色データを生成する低解像度色データ生成ステップと、
前記高解像度画像データから前記低解像度画素形状データを生成する低解像度形状データ生成ステップとを備え、
前記低解像度画素形状データは、低解像度画素形状を示すデータであり、
前記低解像度画素形状は、高解像度画素の基本画素集合の一部または全部の形状とされ、
前記高解像度画素は、前記高解像度画像データの解像度での画素であり、
前記基本画素集合は、縦および/または横において、前記高解像度画像データと前記低解像度画像データとの解像度比より多い前記高解像度画素を有し、
前記低解像度色データ生成ステップでは、前記基本画素集合の中心に位置する前記高解像度画素の色が白以外である場合、前記基本画素集合の中心に位置する前記高解像度画素の色値を、前記低解像度色データの色値とし、
前記低解像度画素形状データは、前記基本画素集合を構成する前記高解像度画素の数と同一ビット数のデータであり、
前記低解像度形状データ生成ステップでは、前記基本画素集合を構成する前記高解像度画素のうち、前記低解像度色データの色値と同一の色値を有する前記高解像度画素の集合の形状を前記低解像度画素形状とし、前記基本画素集合を構成する前記高解像度画素のうち、前記低解像度色データの色値と同一の色値を有する前記高解像度画素に対応するビットの値を0および1の一方とし、前記低解像度色データの色値と同一の色値を有さない前記高解像度画素に対応するビットの値を0および1の他方とすること、
を特徴とする画像処理方法。
In an image processing method for generating low resolution color data and low resolution pixel shape data as low resolution image data from high resolution image data,
A low-resolution color data generation step for generating the low-resolution color data from the high-resolution image data;
A low-resolution shape data generation step for generating the low-resolution pixel shape data from the high-resolution image data,
The low resolution pixel shape data is data indicating a low resolution pixel shape,
The low resolution pixel shape is a part or all of a basic pixel set of high resolution pixels,
The high resolution pixel is a pixel at a resolution of the high resolution image data,
The basic pixel set includes the high-resolution pixels that are larger in the vertical and / or horizontal direction than the resolution ratio of the high-resolution image data and the low-resolution image data.
In the low-resolution color data generation step, when the color of the high-resolution pixel located at the center of the basic pixel set is other than white, the color value of the high-resolution pixel located at the center of the basic pixel set is As the color value of low resolution color data ,
The low resolution pixel shape data is data having the same number of bits as the number of the high resolution pixels constituting the basic pixel set,
In the low resolution shape data generation step, among the high resolution pixels constituting the basic pixel set, the shape of the set of high resolution pixels having the same color value as the color value of the low resolution color data is converted into the low resolution. A bit shape corresponding to the high-resolution pixel having the same color value as the color value of the low-resolution color data among the high-resolution pixels constituting the basic pixel set is set to one of 0 and 1 The bit value corresponding to the high resolution pixel not having the same color value as the color value of the low resolution color data is the other of 0 and 1,
An image processing method characterized by the above.
JP2010152903A 2010-07-05 2010-07-05 Image processing apparatus, image processing program, and image processing method Expired - Fee Related JP5523226B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010152903A JP5523226B2 (en) 2010-07-05 2010-07-05 Image processing apparatus, image processing program, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010152903A JP5523226B2 (en) 2010-07-05 2010-07-05 Image processing apparatus, image processing program, and image processing method

Publications (2)

Publication Number Publication Date
JP2012015947A JP2012015947A (en) 2012-01-19
JP5523226B2 true JP5523226B2 (en) 2014-06-18

Family

ID=45601817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010152903A Expired - Fee Related JP5523226B2 (en) 2010-07-05 2010-07-05 Image processing apparatus, image processing program, and image processing method

Country Status (1)

Country Link
JP (1) JP5523226B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4871822B2 (en) * 2007-09-20 2012-02-08 キヤノン株式会社 Image coding apparatus and control method thereof

Also Published As

Publication number Publication date
JP2012015947A (en) 2012-01-19

Similar Documents

Publication Publication Date Title
JP4725336B2 (en) Image processing apparatus and image processing program
US20170041502A1 (en) Image processing apparatus and control method therefor
JP6029344B2 (en) Image processing apparatus, image processing method, and program
JP6210319B2 (en) Printing method and printing system
JP2008276408A (en) Image processor and memory access control method
JP6251029B2 (en) Control device, image processing device, control method, and program
JP4594042B2 (en) Image processing method, image processing apparatus, and computer program
JP5699709B2 (en) Image processing device
JP2010008439A (en) Device driver
JP5523226B2 (en) Image processing apparatus, image processing program, and image processing method
JP5103304B2 (en) Image processing apparatus, image processing method, and image processing program
JP2007067956A (en) Multi-dimensional interpolation apparatus and multi-dimensional interpolation method
JP2007087191A (en) Image processor and program
WO2014156669A1 (en) Image processing device and image processing method
JP2007083556A (en) Image processor and image processing method
JP6612167B2 (en) Rasterization processing apparatus, rasterization processing method, and program
JP2011077587A (en) Image processor, image processing method, and program
JP2005073025A (en) Image processing device, and image processing programs making computer execute image processing
JP2006054576A (en) Apparatus and method of processing image, program and storage medium
JP5826147B2 (en) Image forming apparatus
JP2002077649A (en) Conversion apparatus of color space, image output apparatus and conversion method thereof
JP5299189B2 (en) Image processing apparatus, image processing method, and image processing program
JP2010118811A (en) Printer, and method of generating dither matrix
JP2009302671A (en) Image processing method, image processing apparatus, and image processing program
JP2008071317A (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120625

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130410

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131225

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140217

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140313

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140408

R150 Certificate of patent or registration of utility model

Ref document number: 5523226

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees