JP2007036489A - Device and method for processing image data, and image-data processing program - Google Patents

Device and method for processing image data, and image-data processing program Download PDF

Info

Publication number
JP2007036489A
JP2007036489A JP2005214910A JP2005214910A JP2007036489A JP 2007036489 A JP2007036489 A JP 2007036489A JP 2005214910 A JP2005214910 A JP 2005214910A JP 2005214910 A JP2005214910 A JP 2005214910A JP 2007036489 A JP2007036489 A JP 2007036489A
Authority
JP
Japan
Prior art keywords
color order
image data
pixel
decoding
encoding
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.)
Granted
Application number
JP2005214910A
Other languages
Japanese (ja)
Other versions
JP4609223B2 (en
Inventor
Masao Morita
雅夫 森田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2005214910A priority Critical patent/JP4609223B2/en
Publication of JP2007036489A publication Critical patent/JP2007036489A/en
Application granted granted Critical
Publication of JP4609223B2 publication Critical patent/JP4609223B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce the processing load on a device in the transfer of an image data. <P>SOLUTION: An input image data in a first color order by RGB from a PC is input to an image encoder 12, and the match or mismatch of a pixel value is predicted, while using an attentional pixel as a current processing object and the peripheral pixel of the target pixel as predictors in a predicting encoder 22 through an input 20. A counted value is used as a code under "a predicted-bit state" of the matching of the pixel value, and the differential value of the pixel value is used as the code under "a predicted miss state" of the mismatch of the pixel value, while color order is changed and encoded. Encoded data are output to an image decoder 14 via an output 24, decoded and output to an image output device 16. Since the color order is changed, when the image data are encoded in this manner, throughput can be reduced and the processing load is lightened. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像データ処理装置、画像データ処理方法、及び画像データ処理プログラムにかかり、第1の色順序の画像データから該第1の色順序と異なる第2の色順序の画像データに変換する画像データ処理装置、画像データ処理方法、及び画像データ処理プログラムに関する。   The present invention relates to an image data processing device, an image data processing method, and an image data processing program, and converts image data having a first color order into image data having a second color order different from the first color order. The present invention relates to an image data processing device, an image data processing method, and an image data processing program.

近年、パーソナルコンピュータ(以下、PCという)等の普及により文書の電子データ化が広まりつつあり、そのデータ量はカラー化の急速な進展に伴って白黒時の数倍に肥大化している。そこで、カラー化(多色化)された文書についてのデータ処理負荷を軽減するためにも、高速・高圧縮可能なカラー画像用圧縮符号化方式が望まれている。   In recent years, with the spread of personal computers (hereinafter referred to as PCs) and the like, the conversion of electronic data into documents is becoming widespread, and the amount of data has increased to several times that in black and white with the rapid progress of colorization. Therefore, in order to reduce the data processing load on a colorized (multicolored) document, a color image compression coding method capable of high speed and high compression is desired.

また、カラー画像を表現する画像データとしては、点順次方式のものと面順次方式のものが知られている。点順次方式の画像データは、例えばR(赤),G(緑),B(青)、またはY(イエロー),M(マゼンタ),C(サイアン),K(黒)といった各色成分が、それぞれ一纏めにして扱われる。このような点順次方式の画像データは、例えばCRT(Cathode Ray Tube)にて点順次で画像表示を行う際に、そのまま表示出力でき高速な処理が可能なので、PC上等で多く利用される。これに対して、面順次方式の画像データは、各色成分がそれぞれ個別に扱われ、例えば電子写真技術を用いたカラープリンタ等にて多く利用される。従って、PC上で扱う点順次方式の画像データを、カラープリンタ上で扱う面順次方式の画像データに変換する等が必要である。   As image data representing a color image, there are known a dot sequential type and a frame sequential type. The dot-sequential image data includes, for example, R (red), G (green), B (blue), or Y (yellow), M (magenta), C (Sian), and K (black) color components. Treated together. Such dot-sequential image data is often used on a PC or the like because, for example, when image display is performed dot-sequentially on a CRT (Cathode Ray Tube), it can be displayed and output as it is and high-speed processing is possible. On the other hand, in the image data of the frame sequential method, each color component is individually handled, and is often used in, for example, a color printer using an electrophotographic technique. Therefore, it is necessary to convert dot sequential image data handled on a PC into frame sequential image data handled on a color printer.

上記処理負荷を軽減するためや変換処理負荷を軽減するために、対象となる画像データに対して高速・高圧縮可能で符号化を行う各種技術が提案されている。例えば、画像データそのものを圧縮符号化するため、符号化回路からの色テーブルデータ,解像度データ,色順序データ及びランレングスデータを圧縮符号化画像データとして出力する技術が知られている(例えば特許文献1参照)。また、点順次方式の画像データを面順次方式に変換するにあたり、その符号化・復号化を高速処理を可能にする技術(例えば特許文献2参照)や、そのデータ圧縮符号化を行う場合に、迅速にデータサイズを保証する技術(例えば特許文献3参照)が提案されている。
特開平10−4498号公報 特開2002−335407号公報 特開2004−32588号公報
In order to reduce the processing load and the conversion processing load, various techniques for encoding target image data with high speed and high compression have been proposed. For example, a technique for outputting color table data, resolution data, color order data, and run-length data from an encoding circuit as compression-encoded image data in order to compress and encode image data itself is known (for example, Patent Documents). 1). Further, when converting the image data of the dot-sequential method into the frame-sequential method, when performing a technique (for example, refer to Patent Document 2) that enables high-speed encoding / decoding, or when performing the data compression encoding, A technique (for example, see Patent Document 3) that promptly guarantees the data size has been proposed.
Japanese Patent Laid-Open No. 10-4498 JP 2002-335407 A JP 2004-32588 A

しかしながら、カラー化された画像データを扱う場合、その色の順序は、画像データを扱うアプリケーションや装置構成に依存しており、一定ではない。従って、カラー化された画像データを授受する場合、入出力の何れか一方側においてカラー化された画像データを扱うアプリケーションや装置で定まる色順序に変換する必要がある。   However, when colorized image data is handled, the order of the colors depends on the application and apparatus configuration that handles the image data, and is not constant. Therefore, when colorized image data is exchanged, it is necessary to convert it to a color order determined by an application or apparatus that handles the colorized image data on either input / output side.

例えば、カラー画像を表現する画像データの出力側で規定される色順序と,その画像データを処理する処理側で規定される色順序が異なる場合がある。例えば、PC等のOSで規定される色順序はBGRであり,プリンタ等の画像処理装置ではRGBで処理したい場合がある。   For example, the color order specified on the output side of image data representing a color image may differ from the color order specified on the processing side that processes the image data. For example, the color order defined by an OS such as a PC is BGR, and an image processing apparatus such as a printer may want to process in RGB.

この他の色順序を変更を必要とする場合として,1画素の画素値が1ワードもしくは1ダブルワードで表現できるケースで,複数コンポーネント(色の構成要素)をCPUの単一の内部整数表現にパッキングして扱うことは一般的なことである。この場合、バイトオーダーが異なるCPUから出力された画像データの色順序が異なるので、PC及び画像処理装置のどちらか一方のCPUでは,色順序を変換する必要が生じる。   As another case where the color order needs to be changed, in the case where the pixel value of one pixel can be expressed by one word or one double word, a plurality of components (components of color) can be expressed as a single internal integer of the CPU. Packing and handling is common. In this case, since the color order of image data output from CPUs having different byte orders is different, it is necessary to convert the color order in either the PC or the image processing apparatus.

このため、上記技術では、予め画像データの色順序を変換した後に符号化(圧縮)したり、復号化(伸長)した後に色順序を変換した画像データを生成したりしている。このため、色順序変換に要する処理量が多く、処理速度低下を招いていた。   For this reason, in the above technique, the color order of the image data is converted in advance and then encoded (compressed), or the image data in which the color order is converted after decoding (decompression) is generated. For this reason, the processing amount required for the color order conversion is large, and the processing speed is reduced.

本発明は、上記事実を鑑み、画像データの授受において装置の処理負荷を軽減できる画像データ処理装置、画像データ処理方法、及び画像データ処理プログラムを提供することを目的とする。   In view of the above-described facts, an object of the present invention is to provide an image data processing apparatus, an image data processing method, and an image data processing program that can reduce the processing load of the apparatus in exchange of image data.

上記目的を達成するために、第1発明の画像データ処理装置は、第1の色順序による点順次形式で表現される画像データを入力する入力手段と、自己の画素と周辺画素の画素値に基づいて複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮して符号化データに符号化する符号化手段と、前記符号化された符号化データを前記所定条件に基づいて前記画像データに復号する復号化手段と、前記符号化手段または前記復号化手段において、複数色の色順序を、前記第1の色順序から該第1の色順序と異なりかつ外部装置に設定される第2の色順序に変換する変換手段と、前記復号化手段における第2の色順序の画像データを外部装置へ出力する出力手段と、を備えている。   In order to achieve the above object, an image data processing apparatus according to a first aspect of the present invention includes input means for inputting image data expressed in a dot sequential format according to a first color order, and pixel values of its own pixels and peripheral pixels. And encoding means for compressing the pixel values of a plurality of pixels in accordance with a predetermined condition while maintaining the first color order and encoding the encoded data into encoded data, and using the encoded encoded data as the predetermined condition. A decoding unit configured to decode the image data based on the image data, and the encoding unit or the decoding unit, wherein the color sequence of the plurality of colors is different from the first color sequence to the external device. Conversion means for converting to a second color order to be set; and output means for outputting image data of the second color order in the decoding means to an external device.

画像データは、第1の色順序による点順次形式で表現され、入力手段に入力される。すなわち、点順次形式による表現とは、複数色の各色成分(画素値)をひとまとめにして扱う形式であり、画像データは、複数色の色毎の画素値を有しかつ該各画素値を第1の色順序によるデータ組で表現される画素を複数有する画像の画像データである。   The image data is expressed in a dot-sequential format according to the first color order and input to the input means. That is, the expression in the dot sequential format is a format in which each color component (pixel value) of a plurality of colors is handled together, and the image data has a pixel value for each color of the plurality of colors, and each pixel value is expressed as a first value. This is image data of an image having a plurality of pixels expressed by a data set of one color order.

第1発明によれば、符号化手段により複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮することによって、画像データを符号化データに符号化する。この符号化データは、復号化手段によって、画像データに復号する。これらの符号化手段または復号化手段では、変換手段によって、複数色の色順序が、第1の色順序から第2の色順序に変換される。すなわち、符号化手段における符号化時または復号化手段における復号化時に色順序が変換される。これによって、復号された画像データは第2の色順序の画像データに変換済みであり、この画像データを出力手段により外部装置へ出力する。   According to the first invention, the image data is encoded into the encoded data by compressing the pixel values of the plurality of pixels according to the predetermined condition while maintaining the first color order by the encoding means. This encoded data is decoded into image data by decoding means. In these encoding means or decoding means, the conversion means converts the color order of the plurality of colors from the first color order to the second color order. That is, the color order is converted at the time of encoding by the encoding means or at the time of decoding by the decoding means. As a result, the decoded image data has been converted into image data of the second color order, and this image data is output to the external device by the output means.

このように、符号化手段における符号化時または復号化手段における復号化時に画像データの色順序を変換するので、符号化以前の画像データについて色順序を変換したり、復号化以後の画像データについて色順序を変換したりすることに比べ、処理量を削減することができ、処理負荷を軽減することができる。   Thus, since the color order of the image data is converted at the time of encoding by the encoding means or at the time of decoding by the decoding means, the color order is converted for the image data before encoding, or the image data after decoding is converted. Compared to changing the color order, the processing amount can be reduced, and the processing load can be reduced.

第2発明の画像データ処理装置は、第1の色順序による点順次形式で表現される画像データを入力する入力手段を入力する入力手段と、自己の画素と周辺画素の画素値に基づいて複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮して符号化データに符号化する符号化手段と、前記符号化された符号化データを前記所定条件に基づいて前記画像データに復号する復号化手段と、前記符号化手段の処理負荷及び前記復号化手段の処理負荷を把握する把握手段と、前記把握手段の把握結果、及び前記画像データに基づいて、前記符号化手段または前記復号化手段を、前記第1の色順序から該第1の色順序と異なりかつ外部装置に設定される第2の色順序に変換する対象手段に定め、該定めた対象手段において、複数色の色順序を、前記第1の色順序から前記第2の色順序に変換する変換手段と、前記復号化手段における第2の色順序の画像データを外部装置へ出力する出力手段と、を備えている。   The image data processing apparatus according to the second aspect of the invention is based on input means for inputting image data expressed in a dot-sequential format according to the first color order, and a plurality of pixels based on pixel values of its own pixels and peripheral pixels. Encoding means for compressing the pixel values of the pixels according to a predetermined condition while maintaining the first color order and encoding the encoded data into encoded data; and the encoded encoded data based on the predetermined condition Decoding means for decoding image data, grasping means for grasping the processing load of the encoding means and the processing load of the decoding means, grasping result of the grasping means, and the encoding based on the image data Or the decoding means is defined as a target means for converting from the first color order to a second color order different from the first color order and set in an external device, and in the determined target means, Multi-colored Conversion means for converting the order from the first color order to the second color order; and output means for outputting the image data of the second color order in the decoding means to an external device. .

第2発明によれば、把握手段により、符号化手段の処理負荷及び復号化手段の処理負荷を把握する。その把握結果、及び画像データに基づいて、変換手段は、符号化手段または復号化手段の何れかを、第1の色順序から第2の色順序に変換する対象手段に定める。この変換手段では、画像データに対する処理負荷が小さい符号化手段または復号化手段を定めることができる。そして、変換手段は、定めた対象手段において、複数色の色順序を変換する。   According to the second invention, the grasping means grasps the processing load of the encoding means and the processing load of the decoding means. Based on the grasp result and the image data, the conversion means determines either the encoding means or the decoding means as the target means for converting from the first color order to the second color order. In this conversion means, an encoding means or a decoding means with a small processing load on the image data can be determined. Then, the conversion means converts the color order of the plurality of colors in the determined target means.

このように、処理負荷が小さい方の符号化手段または復号化手段において色順序を変換するので、符号化手段または復号化手段の最適な手段において色順序を変換するができ、処理量を削減することができる共に、処理負荷を軽減することができる。   Thus, since the color order is converted in the encoding means or decoding means with the smaller processing load, the color order can be converted in the optimum means of the encoding means or decoding means, and the processing amount is reduced. In addition, the processing load can be reduced.

前記符号化手段は、所定条件として、自己の画素と周辺画素について、同一画素値が連続する計数値、及び前記第1の色順序を維持したまま異なる画素値の変動値の符号化データに符号化することを特徴とする。   The encoding means encodes, as a predetermined condition, encoded data of a count value in which the same pixel value continues for its own pixel and surrounding pixels, and a variation value of a different pixel value while maintaining the first color order. It is characterized by becoming.

このようにすることで、同一画素値が連続する画素については、計数値に圧縮でき、効率的に符号化データに符号化できる。また、異なる画素値の画素については、その変動値とすることで、画素値が大きい画素をそのまま符号化するよりも小さい値とすることができ、効率的に符号化データに符号化できる。   By doing in this way, about the pixel in which the same pixel value continues, it can compress to a count value and can be encoded into encoding data efficiently. In addition, regarding the pixels having different pixel values, by using the variation values, it is possible to set the pixels having a large pixel value to a smaller value than when the pixels are encoded as they are, and to efficiently encode the encoded data.

なお、この場合、前記符号化手段は、前記複数色の全画素値について同一画素値が連続するときの計数値を符号化することができる。   In this case, the encoding means can encode the count value when the same pixel value continues for all the pixel values of the plurality of colors.

複数色の全画素値について同一画素値が連続するときの計数値を用いることによって、画素単位で符号かを扱うことができ、処理を簡略化することができる。   By using the count value when the same pixel value continues for all the pixel values of a plurality of colors, it is possible to handle whether the code is a pixel unit, and the processing can be simplified.

前記第1の色順序及び第2の色順序を検出しかつ、検出した第1の色順序と第2の色順序との対応関係を定める設定手段をさらに備え、前記変換手段は、前記設定手段で設定した対応関係により前記第1の色順序から前記第2の色順序に変換することを特徴とする。   The image processing apparatus further includes setting means for detecting the first color order and the second color order and determining a correspondence relationship between the detected first color order and the second color order, and the conversion means includes the setting means The first color order is converted to the second color order according to the correspondence set in (1).

前記第1の色順序と第2の色順序とは複数の組み合わせが考えられる。そこで、第1の色順序と第2の色順序とを検出する。これによって、変換に必要とする様々な色順序を把握することができる。設定手段は、検出した第1の色順序と第2の色順序との対応関係を定める。これによって、様々な色順序による変換をすることができる。この場合、第1の色順序と第2の色順序との複数の対応関係を予めメモリに記憶し、検出した第1の色順序と第2の色順序との対応関係を選択するようにしてもよい。   A plurality of combinations of the first color order and the second color order are conceivable. Therefore, the first color order and the second color order are detected. Thereby, various color orders required for conversion can be grasped. The setting means determines a correspondence relationship between the detected first color order and the second color order. Thereby, it is possible to perform conversion in various color orders. In this case, a plurality of correspondence relationships between the first color order and the second color order are stored in the memory in advance, and the correspondence relationship between the detected first color order and the second color order is selected. Also good.

なお、次の画像データ処理方法によって、処理量の削減による処理負荷の軽減を容易に達成することができる。詳細には、点順次形式で表現される画像データを第1の色順序から該第1の色順序と異なる第2の色順序に変換する機能を有する画像データ処理装置における画像データ処理方法であって、複数色の色毎の画素値を有しかつ該各画素値を第1の色順序によるデータ組で表現される画素を複数有する画像の画像データを入力し、自己の画素と周辺画素の画素値に基づいて複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮して符号化データに符号化し、前記符号化された符号化データを前記所定条件に基づいて前記画像データに復号し、前記符号化するとき又は復号するときに複数色の色順序を、前記第1の色順序から前記第2の色順序に変換し、前記復号した第2の色順序の画像データを外部装置へ出力する。   Note that the processing load can be easily reduced by reducing the processing amount by the following image data processing method. Specifically, the present invention relates to an image data processing method in an image data processing apparatus having a function of converting image data expressed in a dot sequential format from a first color order to a second color order different from the first color order. Input image data of an image having a pixel value for each of a plurality of colors and each pixel value having a plurality of pixels represented by a data set according to a first color order, Based on the pixel values, the pixel values of a plurality of pixels are compressed according to a predetermined condition while maintaining the first color order and encoded into encoded data, and the encoded encoded data is encoded based on the predetermined condition. Decoding into the image data and converting the color order of a plurality of colors from the first color order to the second color order when the encoding or decoding is performed, and the decoded second color order Output image data to an external device.

また、次の画像データ処理プログラムがコンピュータにおいて実行されることによって、画像データを用いた処理量の削減による処理負荷の軽減を容易に達成することができる。詳細には、本発明の画像データ処理プログラムは、コンピュータに、第1の色順序による点順次形式で表現される画像データを入力し、自己の画素と周辺画素の画素値に基づいて複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮して符号化データに符号化し、前記符号化された符号化データを前記所定条件に基づいて前記画像データに復号し、前記符号化するとき又は復号するときに複数色の色順序を、前記第1の色順序から該第1の色順序と異なりかつ外部装置に設定される第2の色順序に変換し、前記復号した第2の色順序の画像データを外部装置へ出力する。   Further, by executing the next image data processing program on the computer, it is possible to easily achieve a reduction in processing load by reducing the amount of processing using the image data. Specifically, the image data processing program of the present invention inputs image data expressed in a dot-sequential format according to the first color order to a computer, and outputs a plurality of pixels based on pixel values of its own pixels and peripheral pixels. A pixel value is compressed according to a predetermined condition while maintaining the first color order and encoded into encoded data, and the encoded encoded data is decoded into the image data based on the predetermined condition, When encoding or decoding, the color order of a plurality of colors is converted from the first color order to a second color order different from the first color order and set in an external device, and the decoded The image data in the second color order is output to the external device.

以上説明したように、本発明によれば、符号化手段における符号化時または復号化手段における復号化時に画像データの色順序を変換するので、符号化以前の画像データについて色順序を変換したり、復号化以後の画像データについて色順序を変換したりすることに比べ、処理量を削減することができ、処理負荷を軽減することができる、という効果が得られる。   As described above, according to the present invention, since the color order of the image data is converted at the time of encoding by the encoding means or at the time of decoding by the decoding means, the color order of the image data before encoding can be converted. As compared with converting the color order of the image data after decoding, the processing amount can be reduced, and the processing load can be reduced.

以下、本発明の画像データ処理装置、画像データ処理方法、及び画像データ処理プログラムに係る、実施の形態を図面を参照して詳細に説明する。   Hereinafter, embodiments of an image data processing device, an image data processing method, and an image data processing program of the present invention will be described in detail with reference to the drawings.

図2は、以下の実施の形態で採用する点順次形式で表現される画像データの概念を示す説明図である。図2に示す点順次形式の画像データでは、R,G,Bの各色成分の信号データが、その画素位置毎に一纏めに取り扱われる。従って、例えば画像データの記憶時には、画素位置に対応する記憶ロケーションにその画素を表すR画素値、G画素値およびB画素値の組が記憶されることになる。   FIG. 2 is an explanatory diagram showing the concept of image data expressed in a dot sequential format adopted in the following embodiments. In the image data in the dot sequential format shown in FIG. 2, the signal data of the R, G, and B color components are handled together for each pixel position. Therefore, for example, when storing image data, a set of R pixel value, G pixel value, and B pixel value representing the pixel is stored in a storage location corresponding to the pixel position.

以下の実施の形態で説明する画像データ処理装置、及び画像データ処理プログラムは、例えばカラープリンタ(画像形成装置)に搭載されて用いられるものである。すなわち、上位装置であるPCから図2に示す点順次形式で表現される画像データ(以下、「入力画像データ」という)を受け取ると、データ量削減のために圧縮符号化を行い、その圧縮符号化後の画像データ(以下、「符号化データ」という)を、伸長復号化を行い、その伸長復号化後の画像データ(以下、「復号化データ」という)を、カラープリンタが備える画像出力装置(プリンタエンジン)に出力するものである。なお、以下の実施の形態では、圧縮符号化時または伸長復号化時に、第1の色順序から第2の色順序に変換する。すなわち、入力画像データは、PC等のOSで規定される第1の色順序で表現されるので、これをカラープリンタ側で規定される第2の色順序で表現される画像データに変換する機能を有している。   An image data processing apparatus and an image data processing program described in the following embodiments are used by being mounted on, for example, a color printer (image forming apparatus). That is, when image data expressed in the dot sequential format shown in FIG. 2 (hereinafter referred to as “input image data”) is received from a PC which is a host device, compression encoding is performed to reduce the amount of data, and the compressed code An image output device that performs decompression decoding on the converted image data (hereinafter referred to as “encoded data”), and includes the image data after the expansion decoding (hereinafter referred to as “decoded data”) in the color printer (Printer engine). In the following embodiment, the first color order is converted to the second color order at the time of compression encoding or decompression decoding. That is, since the input image data is expressed in the first color order specified by the OS such as a PC, the function of converting the input image data into image data expressed in the second color order specified on the color printer side. have.

なお、色順序の変換を伴って画像データを符号化したり復号化したりするものであれば、必ずしもカラープリンタに搭載されている必要はなく、例えばPCに搭載されて用いられるものであっても、またはデジタル複写機等の他の画像出力装置に搭載されて用いられるものであってもよい。   It should be noted that the image data need not be mounted on a color printer as long as the image data is encoded or decoded with color order conversion. For example, the image data may be mounted on a PC and used. Alternatively, it may be used by being mounted on another image output device such as a digital copying machine.

〔第1実施形態〕
本実施形態は、入力画像データを符号化するときに、色順序を変換するものである。
[First Embodiment]
In this embodiment, the color order is converted when the input image data is encoded.

図1は、本実施形態にかかる画像データ処理装置を含むカラープリンタ10の概略構成を示すブロック図である。PCに接続されるカラープリンタ10は、画像符号化装置12及び画像復号化装置14からなる画像データ処理装置と、画像出力装置16とから構成される。画像符号化装置12は、入力画像データを受け取る入力部20、入力画像データを符号化データに変換する予測符号化部22と色順序変換部26、及び符号化データを出力する出力部24を含んでいる。PCからの入力画像データは、画像符号化装置12の入力部20、予測符号化部22、及び出力部24を介して画像復号化装置14へ出力されるように接続される。この予測符号化部22は、色順序変換部26により符号化しながら色順序を変換する機能を有している(詳細は後述)。   FIG. 1 is a block diagram showing a schematic configuration of a color printer 10 including an image data processing apparatus according to the present embodiment. The color printer 10 connected to the PC includes an image data processing device including an image encoding device 12 and an image decoding device 14, and an image output device 16. The image encoding device 12 includes an input unit 20 that receives input image data, a predictive encoding unit 22 and a color order conversion unit 26 that convert the input image data into encoded data, and an output unit 24 that outputs the encoded data. It is out. Input image data from the PC is connected to be output to the image decoding device 14 via the input unit 20, the prediction encoding unit 22, and the output unit 24 of the image encoding device 12. The predictive encoding unit 22 has a function of converting the color order while being encoded by the color order conversion unit 26 (details will be described later).

画像復号化装置14は、符号化データを受け取る入力部30、符号化データを復号化データに変換(詳細は後述)する予測復号化部32、及び復号化データを出力する出力部34を含んでいる。画像符号化装置12からの復号化データは、画像復号化装置14の入力部30、予測復号化部32、及び出力部34を介して画像出力装置16へ出力されるように接続される。   The image decoding device 14 includes an input unit 30 that receives encoded data, a predictive decoding unit 32 that converts the encoded data into decoded data (details will be described later), and an output unit 34 that outputs the decoded data. Yes. The decoded data from the image encoding device 12 is connected so as to be output to the image output device 16 via the input unit 30, the predictive decoding unit 32, and the output unit 34 of the image decoding device 14.

ここで、画像符号化装置12において実行される符号化処理を説明する。この符号化処理は、注目画素と周囲画素との関係を画素毎に予測しながら、符号化する予測符号化方法を実行する処理である。   Here, the encoding process executed in the image encoding device 12 will be described. This encoding process is a process for executing a predictive encoding method for encoding while predicting the relationship between the target pixel and surrounding pixels for each pixel.

図3に示すように、符号化処理は、現在処理対象にする注目画素Xと,その周囲画素として、参照画素を表す予測器B,予測誤差算出基準画素を表す予測器Aを用いる。図3では,予測誤差算出基準画素を表す予測器Aは注目画素Xの左側の画素と設定している。   As shown in FIG. 3, the encoding process uses a target pixel X that is currently processed, and a predictor B that represents a reference pixel and a predictor A that represents a prediction error calculation reference pixel as its surrounding pixels. In FIG. 3, the predictor A representing the prediction error calculation reference pixel is set as the pixel on the left side of the target pixel X.

符号化処理(予測)は,注目画素Xと予測器(A又はB)の画素値の一致を判定することで行う。その判定結果から、画素値が一致すれば「予測ヒット状態」,画素値が不一致ならば「予測はずれ状態」とする。   The encoding process (prediction) is performed by determining the coincidence of the pixel value of the target pixel X and the predictor (A or B). As a result of the determination, if the pixel values match, the “predicted hit state” is set, and if the pixel values do not match, the “predicted off state” is set.

注目画素Xが予測ヒット状態の場合,注目画素Xを次の隣接画素に移動して予測を継続する。これによって、「予測ヒット状態」が継続している間は、一致した予測器の識別子と,予測がヒットした回数が得られる。   When the target pixel X is in the prediction hit state, the target pixel X is moved to the next adjacent pixel and the prediction is continued. As a result, while the “prediction hit state” continues, the identifier of the matched predictor and the number of times the prediction has been hit are obtained.

一方、注目画素Xが予測はずれ状態の場合,次のようにして予測誤差を算出する。予測誤差の算出は、予測誤差算出基準画素である予測器Aの画素値と対象画素である注目画素Xの画素値の差分を演算することで算出する。この差分値を誤差として得る。   On the other hand, when the pixel of interest X is in a mispredicted state, a prediction error is calculated as follows. The prediction error is calculated by calculating the difference between the pixel value of the predictor A that is the prediction error calculation reference pixel and the pixel value of the target pixel X that is the target pixel. This difference value is obtained as an error.

以上の符号化処理について具体的に説明する。   The above encoding process will be specifically described.

予測器の配置は、図3に示すものを採用する。また、符号化処理後の符号フォーマット40は、図4に示すように、予測ヒット状態か予測誤差が発生した予測はずれ状態かを表すシンボルを格納するシンボル格納領域42、そして各々のシンボルに固有のデータを格納するシンボル固有フィールド44から構成される。この符号フォーマット40は、予測ヒット状態時のフォーマット46と,予測はずれ状態時の予測誤差のフォーマット48に分類される。   The arrangement of the predictors is as shown in FIG. In addition, as shown in FIG. 4, the code format 40 after the encoding process includes a symbol storage area 42 for storing a symbol indicating a prediction hit state or a prediction error state in which a prediction error has occurred, and a unique symbol format for each symbol. It consists of a symbol specific field 44 for storing data. The code format 40 is classified into a format 46 in a prediction hit state and a prediction error format 48 in a prediction error state.

予測ヒット状態時のフォーマット46では、シンボル格納領域42に予測ヒット状態を表すシンボルを格納し、シンボル固有フィールド44に一致した予測器の識別子及び一致(ヒット)した回数が格納される。予測はずれ状態時のフォーマット48では、シンボル格納領域42に予測はずれ状態を表すシンボルを格納し、シンボル固有フィールド44に不一致であったときの予測器の差分値が誤差として格納される。   In the format 46 in the predicted hit state, a symbol representing the predicted hit state is stored in the symbol storage area 42, and the identifier of the predictor that matches and the number of times of matching (hit) are stored in the symbol specific field 44. In the format 48 in the case of an unpredicted state, a symbol representing an unpredicted state is stored in the symbol storage area 42, and the difference value of the predictor when there is a mismatch in the symbol specific field 44 is stored as an error.

なお、不一致は、画素単位であり色毎に誤差が必要であるため、図4に示すように、予測誤差の誤差データは,画像のコンポーネント数n個分(例えば、RGBの3色の場合は3個のコンポーネント)の誤差値の誤差データが格納される領域で構成される。   Since the mismatch is a pixel unit and an error is required for each color, as shown in FIG. 4, the error data of the prediction error is the number of image components n (for example, in the case of three colors of RGB) 3 components) error data of error values are stored.

一例として、図5を参照して符号化処理の動作を説明する。図5では、3色の画素値を有する画素を、横に3画素、縦に2画素で構成した画像の画像データを符号化処理する場合を想定している。なお、1画素を表現するために含まれる各色に対応する領域(画素値の格納領域)をコンポーネントという。また、図5では、注目画素Xを斜線で示した画素にあるとする。また,予測誤差を算出するための演算式は,予測誤差算出基準画素の予測器Aの画素値から注目画素Xの画素値を減算するものとする。   As an example, the operation of the encoding process will be described with reference to FIG. In FIG. 5, it is assumed that image data of an image composed of pixels having pixel values of three colors is composed of 3 pixels horizontally and 2 pixels vertically. An area (pixel value storage area) corresponding to each color included to express one pixel is referred to as a component. Further, in FIG. 5, it is assumed that the target pixel X is in a pixel indicated by hatching. The calculation formula for calculating the prediction error is such that the pixel value of the target pixel X is subtracted from the pixel value of the predictor A of the prediction error calculation reference pixel.

まず,予測を行うと、注目画素Xの画素値(0,1,2)と予測器Bの画素値(0,1,2)が一致するため,予測器Bにヒット(画素値が一致)した予測ヒット状態となる。次に、注目画素Xを右隣の画素(1,3,5)に移動し,引き続き予測を行うと,予測器Bにヒットした予測ヒット状態となる。そして、注目画素Xを右隣の画素(3,4,5)に移動し,引き続き予測を行うと、注目画素Xの画素値(3,4,5)と予測器Bの画素値(2,3,4)が不一致となるため,予測がはずれた予測はずれ状態となる。この時点で、これまでの予測ヒット状態の情報を符号化する。   First, when the prediction is performed, the pixel value (0, 1, 2) of the target pixel X matches the pixel value (0, 1, 2) of the predictor B, so that the predictor B is hit (the pixel values match). The predicted hit state. Next, when the target pixel X is moved to the pixel (1, 3, 5) on the right side and prediction is continued, a prediction hit state in which the predictor B is hit is obtained. Then, when the target pixel X is moved to the pixel (3, 4, 5) on the right and the prediction is continued, the pixel value (3, 4, 5) of the target pixel X and the pixel value (2, 3) and 4) are inconsistent, so the prediction is out of prediction. At this point, information on the predicted hit state so far is encoded.

符号化結果として,「予測ヒット状態を示すシンボル,予測器B,2回」の第1の符号化データを得る。   As the encoding result, the first encoded data of “symbol indicating prediction hit state, predictor B, twice” is obtained.

また、予測はずれ状態のため,予測誤差値を演算する。予測誤差基準画素の予測器Aは,注目画素Xの左隣の画素であるので,予測器Aの画素値(1,3,5)に対する注目画素Xの画素値(3,4,5)の演算を行い、符号化する。   In addition, since the prediction is out of order, a prediction error value is calculated. Since the predictor A of the prediction error reference pixel is a pixel on the left side of the target pixel X, the pixel value (3,4,5) of the target pixel X with respect to the pixel value (1,3,5) of the predictor A is calculated. Perform the operation and encode.

予測誤差=予測誤差基準画素(1,3,5)−注目画素(3,4,5)
=(−2,−1,0)
符号化結果として、「予測はずれ状態を示すシンボル,−2,−1,0」の第2の符号化データを得る。
Prediction error = prediction error reference pixel (1, 3, 5) −target pixel (3,4,5)
= (-2, -1, 0)
As a result of encoding, second encoded data of “symbol indicating an unpredicted state, −2, −1, 0” is obtained.

次に,符号化データの復号処理について説明する。ここでは、図5に示す画像データについて上述のようにして符号化した符号化データを復号する処理を説明する。   Next, the decoding process of encoded data will be described. Here, a process of decoding the encoded data obtained by encoding the image data shown in FIG. 5 as described above will be described.

符号化データは、
「予測ヒット状態を示すシンボル,予測器B,2回」
「予測はずれ状態を示すシンボル,−2,−1,0」
である。
The encoded data is
“Symbol indicating predicted hit state, predictor B, twice”
“Symbols indicating an unpredicted state, -2, -1, 0"
It is.

符号化データを解釈することで、まず,予測ヒット状態であることが検出され,ヒットした予測器が予測器Bであり,ヒット回数が2回であることが分かる。従って、予測器Bの画素値を2回コピーする。実際の画像データでは,(0,1,2)と(1,3,5)がコピーされる。   By interpreting the encoded data, first, it is detected that the state is a prediction hit state, and it is understood that the predictor that has hit is the predictor B and the number of hits is two. Therefore, the pixel value of the predictor B is copied twice. In actual image data, (0, 1, 2) and (1, 3, 5) are copied.

次に,予測はずれ状態であることが検出され,予測誤差(−2,−1,0)が得られる。   Next, it is detected that the prediction is off, and a prediction error (−2, −1, 0) is obtained.

画素値を復元するには,上記符号化するときの演算法則の逆算をすればよい。すなわち、
予測誤差=予測誤差基準画素−注目画素(復号する画素)
であるため、
注目画素(復号する画素)=予測誤差基準画素−予測誤差
を演算することにより復元できる。
In order to restore the pixel value, it is only necessary to perform a reverse calculation of the calculation rule when encoding. That is,
Prediction error = prediction error reference pixel−target pixel (pixel to be decoded)
Because
The target pixel (the pixel to be decoded) = prediction error reference pixel−can be restored by calculating the prediction error.

従って、予測誤差基準画素の(1,3,5)から(−2,−1,0)を減算すると(3,4,5)が得られる。   Accordingly, (3, 4, 5) is obtained by subtracting (-2, -1, 0) from the prediction error reference pixel (1, 3, 5).

このようにして演算した復号結果をまとめると,
(0,1,2) (1,3,5) (3,4,5)
の画素値が得られ、正しく復号されることが理解できる。
The decoding results calculated in this way are summarized as follows:
(0,1,2) (1,3,5) (3,4,5)
It can be understood that the pixel values are obtained and decoded correctly.

次に、本実施形態の作用を説明する。本実施形態は、画像符号化装置12において入力画像データを符号化するときに画像データの色順序を変換する。なお、以下の説明では、PCから出力される画像データの色順序はRGBであり,画像出力装置16にはBGRの色順序で出力する場合を想定する。   Next, the operation of this embodiment will be described. In the present embodiment, when the input image data is encoded by the image encoding device 12, the color order of the image data is converted. In the following description, it is assumed that the color order of the image data output from the PC is RGB, and the image data is output to the image output device 16 in the BGR color order.

図6には、画像符号化装置12で実行される処理の流れを示した。図6に示すように、まずステップ100において、PCからの入力画像データを入力する。この入力画像データは、RGBによる第1の色順序である。   FIG. 6 shows a flow of processing executed by the image encoding device 12. As shown in FIG. 6, first, in step 100, input image data from a PC is input. This input image data is in the first color order in RGB.

次のステップ102では、上記ステップ100で入力された画像データの1画素について、上述したように、符号化処理のうちの状態判定処理を行う。すなわち、現在処理対象にする注目画素Xと,その周囲画素として、参照画素を表す予測器B,予測誤差算出基準画素を表す予測器Aを用いて、予測として、注目画素Xと予測器(A又はB)の画素値の一致を判定しその判定結果、画素値が一致の「予測ヒット状態」,画素値が不一致の「予測はずれ状態」の何れかを判定する。   In the next step 102, as described above, the state determination process of the encoding process is performed on one pixel of the image data input in step 100. That is, the target pixel X to be processed, the predictor B representing the reference pixel as the surrounding pixels, and the predictor A representing the prediction error calculation reference pixel, and the target pixel X and the predictor (A Alternatively, the pixel value of B) is determined to match, and as a result of the determination, one of the “predicted hit state” in which the pixel values match and the “prediction off state” in which the pixel values do not match is determined.

予測ヒット状態の場合、ステップ102で肯定され、ステップ104において、上述のようにして予測ヒット状態の情報を符号化し、ステップ106へ進む。ステップ106では、画像データについて符号化が終了、すなわち、全画素について終了したか否かを判断し、否定されるとステップ100へ戻り処理を繰り返す。ステップ106で肯定されると、符号化データを出力部24から出力し、本ルーチンを終了する。   In the case of the predicted hit state, the result is affirmative in step 102, and in step 104, the information on the predicted hit state is encoded as described above, and the process proceeds to step 106. In step 106, it is determined whether or not the image data has been encoded, that is, whether or not all pixels have been processed. If the determination is negative, the process returns to step 100 to repeat the process. If the determination in step 106 is affirmative, the encoded data is output from the output unit 24, and this routine is terminated.

一方、予測はずれ状態のときは、ステップ102で否定され、ステップ110へ進み、予測誤差値を演算する。次に、ステップ112において色順序を変更した後、ステップ114において上述のようにして予測はずれ状態の情報を符号化する。   On the other hand, when the state is out of prediction, the result in Step 102 is negative, and the process proceeds to Step 110 to calculate a prediction error value. Next, after changing the color order in step 112, in step 114, information on the mispredicted state is encoded as described above.

ここで、ステップ112の処理を詳細に説明する。予測はずれ状態の場合、複数コンポーネントで構成されるカラー画像,すなわち本実施形態の多色画像では、次に示すRGB形式の予測誤差計算となる。
(予測誤差計算)
R誤差 = 注目画素の左画素のR値 − 注目画素のR値
G誤差 = 注目画素の左画素のG値 − 注目画素のG値
B誤差 = 注目画素の左画素のB値 − 注目画素のB値
Here, the processing of step 112 will be described in detail. In the case of a misprediction state, a color image composed of a plurality of components, that is, a multicolor image according to the present embodiment, performs prediction error calculation in the following RGB format.
(Prediction error calculation)
R error = R value of left pixel of target pixel-R value of target pixel G error = G value of left pixel of target pixel-G value of target pixel B error = B value of left pixel of target pixel-B of target pixel value

図4に示す符号化フォーマットに従って、色順序を変更せずに出力すると、次に示すコンポーネントのRGB対応のとおりの誤差値の対応になる。
(コンポーネントのRGB対応)
第1のコンポーネント誤差=R誤差
第2のコンポーネント誤差=G誤差
第3のコンポーネント誤差=B誤差
If the output is performed without changing the color order in accordance with the encoding format shown in FIG. 4, error values corresponding to RGB corresponding to the following components are obtained.
(Component RGB support)
First component error = R error Second component error = G error Third component error = B error

従って、出力される符号化データは次のとおりである。
「予測はずれ状態を示すシンボル,R誤差,G誤差,B誤差」
本実施形態では、予測はずれ状態の情報すなわち予測誤差のデータを交換することで、色順序の変換をすることに対応させる。なお、符号化処理の最初の画素は予測はずれ状態となると仮定している。
Accordingly, the output encoded data is as follows.
“Symbols that indicate an out-of-prediction state, R error, G error, and B error”
In the present embodiment, the color order conversion is performed by exchanging information on the misprediction state, that is, prediction error data. Note that it is assumed that the first pixel of the encoding process is in a mispredicted state.

つまり、入力画像データの色順序を変換するのには、コンポーネントの位置を変更すればよい。例えば、色順序をBGRの順序とする場合には、次に示すコンポーネントのBGR対応になる。
(コンポーネントのBGR対応)
第1のコンポーネント誤差=B誤差
第2のコンポーネント誤差=G誤差
第3のコンポーネント誤差=R誤差
That is, in order to convert the color order of the input image data, the position of the component may be changed. For example, when the color order is the BGR order, the following components correspond to BGR.
(Compatible with component BGR)
First component error = B error Second component error = G error Third component error = R error

従って、この場合の符号化データは次のとおりである。
「予測はずれ状態を示すシンボル,B誤差,G誤差,R誤差」
Therefore, the encoded data in this case is as follows.
“Symbols that indicate an out-of-prediction state, B error, G error, R error”

そこで、ステップ112では、コンポーネントの誤差値の対応を変更するマッピングを用いて、色順序を変更する。具体的には、図7に示す変換表を用いて、入力画像データについて色順序RGBを色順序BGRにマッピングする。この変換表を入出力の色順序の対応について複数記憶し、該当する変換表を選択することで、種々の色順序の変更に対応することができる。このようにすることで、符号化データは、BGRによる第2の色順序に変換される。   Therefore, in step 112, the color order is changed using a mapping that changes the correspondence of the error values of the components. Specifically, the color order RGB is mapped to the color order BGR for the input image data using the conversion table shown in FIG. By storing a plurality of conversion tables corresponding to the input / output color order and selecting the corresponding conversion table, it is possible to cope with various color order changes. In this way, the encoded data is converted into the second color order by BGR.

図7の例は、色順序RGBを色順序BGRにマッピングするもので、入力のコンポーネントの順番に対する出力のコンポーネントの順番をテーブルとしている。すなわち、入力のコンポーネント番号をインデックスとして変換表を引けば,出力順序(インデックス)が得られる。   In the example of FIG. 7, the color order RGB is mapped to the color order BGR, and the order of output components relative to the order of input components is used as a table. In other words, the output order (index) can be obtained by subtracting the conversion table using the input component number as an index.

具体的には,次のような擬似コードになる。   Specifically, the pseudo code is as follows.

(擬似コード)
Out[1] = in[map[1]] = in[3];
Out[2] = in[map[2]] = in[2];
Out[3] = in[map[3]] = in[1];
但し、Out[i]は出力の第i番目のコンポーネント、in[j]は入力の第j番目のコンポーネント、map[k]は変換表の第k番目のインデックスを参照すること、を示している。
(Pseudo code)
Out [1] = in [map [1]] = in [3];
Out [2] = in [map [2]] = in [2];
Out [3] = in [map [3]] = in [1];
However, Out [i] indicates the i-th component of the output, in [j] indicates the j-th component of the input, and map [k] indicates that the k-th index of the conversion table is referred to. .

具体的な画素値を用いて説明すると、入力画像データがRGB画像であり,符号化データはBGRの順序になるように符号化するとする。
まず、予測ヒット状態時の符号化データは変更がなく、次の符号化データとなる。
「予測ヒット状態を示すシンボル,予測器B,2回」
To explain using specific pixel values, it is assumed that the input image data is an RGB image and the encoded data is encoded in the order of BGR.
First, the encoded data in the prediction hit state is not changed and becomes the next encoded data.
“Symbol indicating predicted hit state, predictor B, twice”

次に、予測誤差時の予測誤差は(−2,−1,0)である。そこで、色順序を変更するため、上述の変換表から出力誤差値として出力する順番を取得して,色順序を変換する。その結果は次に示す通りとなる。   Next, the prediction error at the time of the prediction error is (−2, −1, 0). Therefore, in order to change the color order, the order of output as output error values is obtained from the above conversion table, and the color order is converted. The result is as follows.

(変換結果)
出力予測誤差1 = 予測誤差の3番目 = 0
出力予測誤差2 = 予測誤差の2番目 =−1
出力予測誤差3 = 予測誤差の1番目 =−2
従って、予測はずれ状態時の符号化データは、次の符号化データとなる。
「予測はずれ状態を示すシンボル,0,−1,−2」
(Conversion result)
Output prediction error 1 = Third prediction error = 0
Output prediction error 2 = second prediction error = -1
Output prediction error 3 = first prediction error = -2
Therefore, the encoded data in the mispredicted state is the next encoded data.
“Symbols that indicate an unpredictable state, 0, −1, −2”

以上説明したように、本実施形態によれば、画像データを符号化するときに、色順序を変更するので、処理量を削減することができ、処理負荷を軽減することができる。より詳しくは、同一画素値が連続する場合にはその計数値のみに圧縮でき、画素値が不一致のときの誤差値の格納位置を変更するのみで、色順序を変更することができる。これによって、画像データの全画素の画素値を変換対象として演算するような符号化以前または復号化以後に色順序を変換することに比べ、処理負荷を軽減することができる。また、画素単位による変換処理のため、画像を構成する画素を全て扱う処理より、処理負荷を軽減することができる。従って、処理時間を大幅に短縮することが可能となる。   As described above, according to the present embodiment, since the color order is changed when encoding image data, the processing amount can be reduced and the processing load can be reduced. More specifically, when the same pixel value continues, it can be compressed only to the count value, and the color order can be changed only by changing the storage position of the error value when the pixel values do not match. As a result, the processing load can be reduced as compared with the case where the color order is converted before or after the encoding in which the pixel values of all the pixels of the image data are calculated. Further, since the conversion process is performed in units of pixels, the processing load can be reduced as compared with the process that handles all the pixels constituting the image. Therefore, the processing time can be greatly shortened.

言い換えれば、予測符号化において予測誤差を処理する時に色順序を変更することで、全ての画素値に対して色順序を変更する必要がなく、色順序の変更回数が予測誤差発生時のみに限定できるため,変更回数を削減できることで高速な処理が可能になる。   In other words, by changing the color order when processing the prediction error in predictive coding, it is not necessary to change the color order for all pixel values, and the number of changes in the color order is limited to the time when the prediction error occurs. Therefore, high-speed processing becomes possible by reducing the number of changes.

〔第2実施形態〕
本実施形態は、符号化データを復号化するときに、色順序を変換するものである。なお、本実施形態は、上記実施形態とほぼ同様の構成のため、同一部分には同一符号を付して詳細な説明を省略する。
[Second Embodiment]
In the present embodiment, the color order is converted when the encoded data is decoded. In addition, since this embodiment is a structure substantially the same as the said embodiment, the same code | symbol is attached | subjected to the same part and detailed description is abbreviate | omitted.

図9は、本実施形態にかかる画像データ処理装置を含むカラープリンタ10の概略構成を示すブロック図である。図9の図1と異なる箇所は、図1の画像符号化装置12に接続される色順序変換部26は不要とされ、代えて、画像復号化装置14に色順序変換部36が接続された点である。すなわち、本実施形態の画像符号化装置12では、入力画像データを符号化データに変換するのみとし、画像復号化装置14において予測復号化部32と色順序変換部36により、符号化データを復号するときに色順序を変換するものである。   FIG. 9 is a block diagram showing a schematic configuration of the color printer 10 including the image data processing apparatus according to the present embodiment. 9 is different from FIG. 1 in that the color order conversion unit 26 connected to the image encoding device 12 in FIG. 1 is unnecessary, and instead, the color order conversion unit 36 is connected to the image decoding device 14. Is a point. That is, the image encoding device 12 of this embodiment only converts input image data into encoded data, and the image decoding device 14 decodes the encoded data by the predictive decoding unit 32 and the color order conversion unit 36. When changing the color order.

次に、本実施形態の作用を説明する。本実施形態は、画像復号化装置14において符号化データを復号化するときに画像データの色順序を変換する。   Next, the operation of this embodiment will be described. In this embodiment, the color order of image data is converted when the image decoding apparatus 14 decodes the encoded data.

図10には、画像復号化装置14で実行される処理の流れを示した。図10に示すように、まずステップ200において、画像符号化装置12からの符号化データを入力する。この符号化データは、RGBによる第1の色順序になっている。   FIG. 10 shows a flow of processing executed by the image decoding device 14. As shown in FIG. 10, first, in step 200, encoded data from the image encoding device 12 is input. This encoded data is in the first color order in RGB.

次のステップ202では、上記ステップ200で入力された符号化データについて、シンボルを参照することで、上述した状態判定処理を行う。すなわち、予測ヒット状態を示すシンボルか予測はずれ状態を示すシンボルかを判定する。   In the next step 202, the state determination process described above is performed by referring to the symbols for the encoded data input in step 200. That is, it is determined whether the symbol indicates a predicted hit state or a symbol that indicates an unpredicted state.

ステップ202で肯定され、ステップ204において、上述のようにして予測ヒット状態の情報を復号化し、ステップ206へ進む。具体的には、予測ヒット状態の場合、シンボル固有フィールド44のヒット予測器及びヒット回数のデータから、どの予測器に何回ヒットすなわち何回画素値が一致したかを把握できるので、ステップ204では、該当する予測器(AまたはB)の画素値をヒット回数分だけコピーすることで、復号する。ステップ206では、符号化データについて復号化が終了、すなわち、画像データの復号が終了したか否かを判断し、否定されるとステップ200へ戻り処理を繰り返す。ステップ206で肯定されると、出力部34から復号した画像データすなわち復号化データを出力し、本ルーチンを終了する。   The result is affirmative in step 202, and in step 204, the predicted hit state information is decoded as described above, and the process proceeds to step 206. Specifically, in the case of the predicted hit state, it is possible to grasp how many hits, that is, how many times the pixel value is matched with which predictor from the hit predictor and hit count data in the symbol specific field 44. Decoding is performed by copying the pixel value of the corresponding predictor (A or B) by the number of hits. In step 206, it is determined whether or not the decoding of the encoded data has been completed, that is, whether or not the decoding of the image data has been completed. If the determination is negative, the process returns to step 200 to repeat the process. If the determination in step 206 is affirmative, the decoded image data, that is, the decoded data is output from the output unit 34, and this routine is terminated.

一方、予測はずれ状態のときは、ステップ202で否定され、ステップ210へ進み、色順序を変更したのち、次のステップ212で上述のようにして画素値を復号し、ステップ214で出力する。   On the other hand, when the state is not predicted, the result in Step 202 is negative, and the process proceeds to Step 210. After the color order is changed, the pixel value is decoded as described above in Step 212 and output in Step 214.

ここで、ステップ210の処理を詳細に説明する。符号化データで、予測はずれ状態が検出された場合、上述のように、シンボルに続いて,コンポーネント順に予測誤差値が並んでおり、予測誤差値を予測誤差算出基準画素値と予測誤差値を演算することで画素値を復号できる。復号化は符号化とは逆の処理となるので、次に示す復号計算となる。   Here, the processing of step 210 will be described in detail. When an unpredicted state is detected in the encoded data, as described above, the prediction error values are arranged in the order of components following the symbol, and the prediction error value is calculated as the prediction error calculation reference pixel value and the prediction error value. By doing so, the pixel value can be decoded. Since decoding is the reverse of encoding, the following decoding calculation is performed.

(復号計算)
第1コンポーネントの画素値=左画素のコンポーネント値−第1誤差値
第2コンポーネントの画素値=左画素のコンポーネント値−第2誤差値
第3コンポーネントの画素値=左画素のコンポーネント値−第3誤差値
(RGBの場合の復号計算)
復号する画素のR値 = 復号する画素の左画素のR値 − R誤差
復号する画素のG値 = 復号する画素の左画素のG値 − G誤差
復号する画素のB値 = 復号する画素の左画素のB値 − B誤差
(Decryption calculation)
Pixel value of first component = component value of left pixel−first error value pixel value of second component = component value of left pixel−second error value pixel value of third component = component value of left pixel−third error Value (decoding calculation for RGB)
R value of the pixel to be decoded = R value of the left pixel of the pixel to be decoded-R error G value of the pixel to be decoded = G value of the left pixel of the pixel to be decoded-G error B value of the pixel to be decoded = Left of the pixel to be decoded Pixel B value-B error

図4に示す符号化フォーマットに従って、色順序を変更せずに復号すると、次に示すコンポーネントのRGB対応のとおりの画素値の対応になる。
(コンポーネントのRGB対応)
第1のコンポーネントの値=R値
第2のコンポーネントの値=G値
第3のコンポーネントの値=B値
When decoding is performed without changing the color order in accordance with the encoding format shown in FIG. 4, the pixel values corresponding to RGB corresponding to the following components are obtained.
(Component RGB support)
1st component value = R value 2nd component value = G value 3rd component value = B value

従って、出力される復号化データは次のとおりである。
(R値,G値,B値)
Accordingly, the output decoded data is as follows.
(R value, G value, B value)

本実施形態では、予測はずれ状態が検出されたとき復号したデータを交換することで、色順序の変換をすることに対応させる。つまり、色順序を変換するのには、コンポーネントの出力位置を変更すればよい。例えば、RGBの色順序で符号化された符号化データをBGRの色順序の復号化データに復号する場合には、次に示すコンポーネントの復号対応になる。
(コンポーネントの復号対応)
第1のコンポーネントの値=Bの画素値
第2のコンポーネントの値=Gの画素値
第3のコンポーネントの値=Rの画素値
In the present embodiment, when the mispredicted state is detected, the decoded data is exchanged to correspond to the color order conversion. That is, in order to convert the color order, the output position of the component may be changed. For example, when decoding the encoded data encoded in the RGB color order into the decoded data in the BGR color order, the following components are supported for decoding.
(Component decryption support)
First component value = B pixel value Second component value = G pixel value Third component value = R pixel value

そこで、ステップ210では、コンポーネントの出力の対応を変更するマッピングを用いて、色順序を変更する。具体的には、図8に示す変換表を用いて、符号化データについて色順序RGBを色順序BGRにマッピングする。この変換表を入出力の色順序の対応について複数記憶し、該当する変換表を選択することで、種々の色順序の変更に対応することができる。このようにすることで、符号化データは、BGRによる第2の色順序に変換される。   Therefore, in step 210, the color order is changed using a mapping that changes the correspondence of the output of the component. Specifically, the color order RGB is mapped to the color order BGR for the encoded data using the conversion table shown in FIG. By storing a plurality of conversion tables corresponding to the input / output color order and selecting the corresponding conversion table, it is possible to cope with various color order changes. In this way, the encoded data is converted into the second color order by BGR.

図7の例は、色順序RGBの符号化データの出力を色順序BGRの復号化データにマッピングするもので、入力のコンポーネントの順番に対する出力のコンポーネントの順番をテーブルとしている。すなわち、符号化データとしての入力のコンポーネント番号をインデックスとして変換表を引けば,出力順序(インデックス)が得られる。   The example of FIG. 7 maps the output of the encoded data of the color order RGB to the decoded data of the color order BGR, and uses the order of the output components relative to the order of the input components as a table. In other words, an output order (index) can be obtained by subtracting a conversion table using an input component number as encoded data as an index.

具体的には,次のような擬似コードになる。   Specifically, the pseudo code is as follows.

(復号擬似コード)
第1誤差値 = 誤差符号列[map[1]];
第2誤差値 = 誤差符号列[map[2]];
第3誤差値 = 誤差符号列[map[3]];
但し、map[m]は変換表の第m番目のインデックスを参照すること、を示している。
(Decryption pseudo code)
First error value = error code string [map [1]];
Second error value = error code string [map [2]];
Third error value = error code string [map [3]];
Here, map [m] indicates that the mth index of the conversion table is referred to.

具体的に説明する。ここでは、符号化データがBGR画像であり,復号化データはRGBの順序になるように復号化するとする。その結果は次のようになる。   This will be specifically described. Here, it is assumed that the encoded data is a BGR image and the decoded data is decoded so as to be in RGB order. The result is as follows.

第1誤差値=R誤差値=誤差符号列[map[1]] =3番目の誤差符号
第2誤差値=G誤差値=誤差符号列[map[2]] =2番目の誤差符号
第3誤差値=B誤差値=誤差符号列[map[3]] =1番目の誤差符号
First error value = R error value = error code string [map [1]] = third error code second error value = G error value = error code string [map [2]] = second error code Error value = B error value = error code string [map [3]] = first error code

次に、復号のためのための演算をすると、次のようになる。   Next, calculation for decoding is performed as follows.

第1のコンポーネント画素値=左画素R値−R誤差値
第2のコンポーネント画素値=左画素G値−G誤差値
第3のコンポーネント画素値=左画素B値−B誤差値
この結果、RGBの色順序の復号化データを得ることができる。
First component pixel value = left pixel R value−R error value second component pixel value = left pixel G value−G error value third component pixel value = left pixel B value−B error value Decoded data in color order can be obtained.

次に数値的に見ると、予測はずれ状態時の符号化データは、
「予測はずれ状態を示すシンボル,0,−1,−2」
の符号化データとなる。
Next, numerically, the encoded data at the time of the mispredicted state is
“Symbols that indicate an unpredictable state, 0, −1, −2”
Encoded data.

そこで、上述したように予測誤差値(0,−1,−2)の順序を変更する。すなわち図8の定義に従うと、次の結果を得る。
第1誤差値=R誤差値=3番目の誤差符号=−2
第2誤差値=G誤差値=2番目の誤差符号=−1
第3誤差値=B誤差値=1番目の誤差符号= 0
Therefore, the order of the prediction error values (0, -1, -2) is changed as described above. That is, according to the definition of FIG. 8, the following result is obtained.
First error value = R error value = third error code = −2
Second error value = G error value = second error code = −1
Third error value = B error value = 1st error code = 0

この復号結果の画素値は予測誤差基準画素との差分であるので、次に示すように求めることができ、復号結果(3,4,5)を得る。
第1のコンポーネント画素値=左画素R値(1)−R誤差値(−2)=3
第2のコンポーネント画素値=左画素G値(3)−G誤差値(−1)=4
第3のコンポーネント画素値=左画素B値(5)−B誤差値(0) =5
Since the pixel value of the decoding result is a difference from the prediction error reference pixel, it can be obtained as follows, and the decoding result (3, 4, 5) is obtained.
First component pixel value = left pixel R value (1) −R error value (−2) = 3
Second component pixel value = left pixel G value (3) −G error value (−1) = 4
Third component pixel value = left pixel B value (5) −B error value (0) = 5

以上説明したように、本実施形態によれば、画像データを復号化するときに、色順序を変更するので、上記実施形態と同様に、処理量を削減することができ、処理負荷を軽減することができる。   As described above, according to the present embodiment, since the color order is changed when decoding image data, the processing amount can be reduced and the processing load can be reduced as in the above-described embodiment. be able to.

すなわち、予測符号の復号化における予測誤差を操作する時に色順序を変更することで、全ての画素値に対して色順序を変更する必要がなく、色順序の変更回数が予測誤差発生時のみに限定できるため、変更回数を削減できることで高速な処理が可能になる。   That is, by changing the color order when manipulating the prediction error in decoding of the prediction code, it is not necessary to change the color order for all the pixel values, and the number of times the color order is changed only when a prediction error occurs. Since the number of changes can be reduced, the number of changes can be reduced, thereby enabling high-speed processing.

〔第3実施形態〕
本実施形態は、入力画像データを符号化するときまたは符号化データを復号化するときに、色順序を変換するものである。なお、本実施形態は、上記実施形態とほぼ同様の構成のため、同一部分には同一符号を付して詳細な説明を省略する。
[Third Embodiment]
In this embodiment, the color order is converted when the input image data is encoded or when the encoded data is decoded. In addition, since this embodiment is a structure substantially the same as the said embodiment, the same code | symbol is attached | subjected to the same part and detailed description is abbreviate | omitted.

図11は、本実施形態にかかる画像データ処理装置を含むカラープリンタ10の概略構成を示すブロック図である。図11の図1及び図9と異なる箇所は、図1の画像符号化装置12及び図9の画像復号化装置14を用いて、これらの色順序変換部26及び色順序変換部36に判定部18を接続して構成した点である。この判定部18には、PCからの画像データ入力されるように接続される。本実施形態では、画像符号化装置12または画像復号化装置14の何れかを、色順序を変換する対象箇所と判定して該当装置において、色順序を変換する。   FIG. 11 is a block diagram showing a schematic configuration of the color printer 10 including the image data processing apparatus according to the present embodiment. 11 differs from FIG. 1 and FIG. 9 in that the color order conversion unit 26 and the color order conversion unit 36 use the image encoding device 12 in FIG. 1 and the image decoding device 14 in FIG. 18 is connected. The determination unit 18 is connected so that image data is input from the PC. In the present embodiment, any one of the image encoding device 12 and the image decoding device 14 is determined as a target portion whose color order is to be converted, and the color order is converted in the corresponding device.

次に、本実施形態の作用を説明する。なお、画像符号化装置12及び画像復号化装置14の作動は上述と同様のため、詳細な説明を省略する。   Next, the operation of this embodiment will be described. The operations of the image encoding device 12 and the image decoding device 14 are the same as described above, and thus detailed description thereof is omitted.

図12には、本実施形態の判定部18で実行される処理の流れを示した。図12に示すように、まずステップ300において画像符号化装置12の負荷を検出し、次のステップ302において画像復号化装置14の負荷を検出する。ステップ300及びステップ302で検出する負荷は、各装置のCPUの能力や記憶容量等のハードウェア資源の能力を表す予め記憶されたデータやソフトウェアの標準処理時間としてソフトウェア資源の能力を表す予め記憶されるデータがある。次のステップ304では、PCからの画像データを読み取る。ステップ304で読み取る画像データは、画像データの容量や形式等の負荷に関係するデータである。   FIG. 12 shows the flow of processing executed by the determination unit 18 of this embodiment. As shown in FIG. 12, first, the load on the image encoding device 12 is detected in Step 300, and the load on the image decoding device 14 is detected in the next Step 302. The load detected in step 300 and step 302 is stored in advance that represents the capacity of the software resource as the standard processing time of the data or the pre-stored data representing the capacity of the hardware resource such as the CPU capacity and storage capacity of each device. There is data. In the next step 304, image data from the PC is read. The image data read in step 304 is data related to the load such as the capacity and format of the image data.

次のステップ306では、上記ステップ300乃至ステップ304で得たデータを用いて、画像符号化装置12または画像復号化装置14の何れかを、色順序変換の対象装置として決定する。この決定は、ステップ304の画像データを処理するに当たって、処理負荷が少ない装置、例えば、CPUの能力が速い装置、記憶容量が大きい装置、処理時間が短いソフトウェアを有する装置を決定することができる。   In the next step 306, using the data obtained in steps 300 to 304, either the image encoding device 12 or the image decoding device 14 is determined as a color order conversion target device. In this determination, when processing the image data in step 304, it is possible to determine a device with a low processing load, for example, a device with a fast CPU capability, a device with a large storage capacity, and a device with software with a short processing time.

ステップ306において色順序変換の対象装置が決定されると、色順序変換処理を該当装置(画像符号化装置12の予測符号化部22と色順序変換部26、または画像復号化装置14の予測復号化部32と色順序変換部36)で処理するため、判定部18から制御信号を出力する。これによって、画像符号化装置12または画像復号化装置14の何れかが色順序変換処理を実行する対象装置として稼動される。   When the target device for color order conversion is determined in step 306, the color order conversion processing is performed on the corresponding device (the prediction encoding unit 22 and the color order conversion unit 26 of the image encoding device 12 or the prediction decoding of the image decoding device 14). The determination unit 18 outputs a control signal for processing by the conversion unit 32 and the color order conversion unit 36). Accordingly, either the image encoding device 12 or the image decoding device 14 is operated as a target device that executes the color order conversion process.

このように、本実施の形態によれば、色順序を変換するときの負荷状況に応じて、装置を選択することができるので、画像データ及び装置の付加状況に則して色順序変換を迅速に処理することができる。   As described above, according to the present embodiment, the apparatus can be selected according to the load situation when the color order is converted, so that the color order conversion can be quickly performed in accordance with the image data and the additional situation of the apparatus. Can be processed.

本発明の第1実施形態に係る画像データ処理装置の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of an image data processing apparatus according to a first embodiment of the present invention. 点順次形式で表現される画像データの概念を示す説明図である。It is explanatory drawing which shows the concept of the image data expressed by a dot sequential format. 符号化処理における注目画素と,その周囲画素の関係を示す模式図である。It is a schematic diagram which shows the relationship of the attention pixel and its surrounding pixel in an encoding process. 符号化処理の符号フォーマットを示す概念図である。It is a conceptual diagram which shows the code format of an encoding process. 画像を構成する画素の配置例を示すイメージ図である。It is an image figure which shows the example of arrangement | positioning of the pixel which comprises an image. 本発明の第1実施形態にかかる画像符号化装置で実行される処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process performed with the image coding apparatus concerning 1st Embodiment of this invention. 画像符号化装置において色順序を変更するときに利用する変換表を示す概念図である。It is a conceptual diagram which shows the conversion table utilized when changing a color order in an image coding apparatus. 画像復号化装置において色順序を変更するときに利用する変換表を示す概念図である。It is a conceptual diagram which shows the conversion table utilized when changing a color order in an image decoding apparatus. 本発明の第2実施形態に係る画像データ処理装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the image data processing apparatus which concerns on 2nd Embodiment of this invention. 本発明の第2実施形態にかかる画像復号化装置で実行される処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process performed with the image decoding apparatus concerning 2nd Embodiment of this invention. 本発明の第3実施形態に係る画像データ処理装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the image data processing apparatus which concerns on 3rd Embodiment of this invention. 本発明の第3実施形態にかかるカラープリンタの判定部で実行される処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process performed by the determination part of the color printer concerning 3rd Embodiment of this invention.

符号の説明Explanation of symbols

A…予測器
B…予測器
X…注目画素
10…カラープリンタ
12…画像符号化装置
14…画像復号化装置
16…画像出力装置
18…判定部
20…入力部
22…予測符号化部
24…出力部
26…色順序変換部
30…入力部
32…予測復号化部
34…出力部
36…色順序変換部
40…符号フォーマット
42…シンボル格納領域
44…シンボル固有フィールド
46…フォーマット
48…フォーマット
A ... Predictor B ... Predictor X ... Pixel 10 of interest ... Color printer 12 ... Image encoding device 14 ... Image decoding device 16 ... Image output device 18 ... Determining unit 20 ... Input unit 22 ... Predictive encoding unit 24 ... Output Unit 26 ... Color order conversion unit 30 ... Input unit 32 ... Predictive decoding unit 34 ... Output unit 36 ... Color order conversion unit 40 ... Code format 42 ... Symbol storage area 44 ... Symbol specific field 46 ... Format 48 ... Format

Claims (7)

第1の色順序による点順次形式で表現される画像データを入力する入力手段と、
自己の画素と周辺画素の画素値に基づいて複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮して符号化データに符号化する符号化手段と、
前記符号化された符号化データを前記所定条件に基づいて前記画像データに復号する復号化手段と、
前記符号化手段または前記復号化手段において、複数色の色順序を、前記第1の色順序から該第1の色順序と異なりかつ外部装置に設定される第2の色順序に変換する変換手段と、
前記復号化手段における第2の色順序の画像データを外部装置へ出力する出力手段と、
を備えた画像データ処理装置。
Input means for inputting image data expressed in a dot-sequential format according to a first color order;
Encoding means for compressing the pixel values of a plurality of pixels based on the pixel values of the self pixel and the surrounding pixels according to a predetermined condition while maintaining the first color order and encoding the encoded data into encoded data;
Decoding means for decoding the encoded data into the image data based on the predetermined condition;
In the encoding means or the decoding means, conversion means for converting the color order of a plurality of colors from the first color order to a second color order that is different from the first color order and is set in an external device. When,
Output means for outputting image data of the second color order in the decoding means to an external device;
An image data processing apparatus.
第1の色順序による点順次形式で表現される画像データを入力する入力手段と、
自己の画素と周辺画素の画素値に基づいて複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮して符号化データに符号化する符号化手段と、
前記符号化された符号化データを前記所定条件に基づいて前記画像データに復号する復号化手段と、
前記符号化手段の処理負荷及び前記復号化手段の処理負荷を把握する把握手段と、
前記把握手段の把握結果、及び前記画像データに基づいて、前記符号化手段または前記復号化手段を、前記第1の色順序から該第1の色順序と異なりかつ外部装置に設定される第2の色順序に変換する対象手段に定め、該定めた対象手段において、複数色の色順序を、前記第1の色順序から前記第2の色順序に変換する変換手段と、
前記復号化手段における第2の色順序の画像データを外部装置へ出力する出力手段と、
を備えた画像データ処理装置。
Input means for inputting image data expressed in a dot-sequential format according to a first color order;
Encoding means for compressing the pixel values of a plurality of pixels based on the pixel values of the self pixel and the surrounding pixels according to a predetermined condition while maintaining the first color order and encoding the encoded data into encoded data;
Decoding means for decoding the encoded data into the image data based on the predetermined condition;
Grasping means for grasping the processing load of the encoding means and the processing load of the decoding means;
Based on the grasping result of the grasping means and the image data, the encoding means or the decoding means differs from the first color order from the first color order and is set in an external device. Conversion means for converting the color order of a plurality of colors from the first color order to the second color order in the determined target means,
Output means for outputting image data of the second color order in the decoding means to an external device;
An image data processing apparatus.
前記符号化手段は、所定条件として、自己の画素と周辺画素について、同一画素値が連続する計数値、及び前記第1の色順序を維持したまま異なる画素値の変動値の符号化データに符号化することを特徴とする請求項1または請求項2に記載の画像データ処理装置。   The encoding means encodes, as a predetermined condition, encoded data of a count value in which the same pixel value continues for its own pixel and surrounding pixels, and a variation value of a different pixel value while maintaining the first color order. The image data processing apparatus according to claim 1, wherein the image data processing apparatus is an image data processing apparatus. 前記符号化手段は、前記複数色の全画素値について同一画素値が連続するときの計数値を符号化することを特徴とする請求項3に記載の画像データ処理装置。   The image data processing apparatus according to claim 3, wherein the encoding unit encodes a count value when the same pixel value continues for all pixel values of the plurality of colors. 前記第1の色順序及び第2の色順序を検出しかつ、検出した第1の色順序と第2の色順序との対応関係を定める設定手段をさらに備え、
前記変換手段は、前記設定手段で設定した対応関係により前記第1の色順序から前記第2の色順序に変換することを特徴とする請求項1乃至請求項4の何れか1項に記載の画像データ処理装置。
Setting means for detecting the first color order and the second color order and determining a correspondence relationship between the detected first color order and the second color order;
5. The conversion device according to claim 1, wherein the conversion unit converts the first color order into the second color order according to the correspondence set by the setting unit. 6. Image data processing device.
点順次形式で表現される画像データを第1の色順序から該第1の色順序と異なる第2の色順序に変換する機能を有する画像データ処理装置における画像データ処理方法であって、
第1の色順序による点順次形式で表現される画像データを入力し、
自己の画素と周辺画素の画素値に基づいて複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮して符号化データに符号化し、
前記符号化された符号化データを前記所定条件に基づいて前記画像データに復号し、
前記符号化するとき又は復号するときに複数色の色順序を、前記第1の色順序から前記第2の色順序に変換し、
前記復号した第2の色順序の画像データを外部装置へ出力する
画像データ処理方法。
An image data processing method in an image data processing apparatus having a function of converting image data expressed in a dot-sequential format from a first color order to a second color order different from the first color order,
Input image data expressed in a dot-sequential format according to the first color order;
Based on the pixel values of its own pixels and surrounding pixels, the pixel values of a plurality of pixels are compressed according to a predetermined condition while maintaining the first color order and encoded into encoded data,
Decoding the encoded data into the image data based on the predetermined condition;
Converting the color order of a plurality of colors from the first color order to the second color order when encoding or decoding;
An image data processing method for outputting the decoded image data of the second color order to an external device.
コンピュータに、
第1の色順序による点順次形式で表現される画像データを入力し、
自己の画素と周辺画素の画素値に基づいて複数画素の画素値を、前記第1の色順序を維持したまま所定条件に従って圧縮して符号化データに符号化し、
前記符号化された符号化データを前記所定条件に基づいて前記画像データに復号し、
前記符号化するとき又は復号するときに複数色の色順序を、前記第1の色順序から該第1の色順序と異なりかつ外部装置に設定される第2の色順序に変換し、
前記復号した第2の色順序の画像データを外部装置へ出力する
画像データ処理プログラム。
On the computer,
Input image data expressed in a dot-sequential format according to the first color order;
Based on the pixel values of its own pixels and surrounding pixels, the pixel values of a plurality of pixels are compressed according to a predetermined condition while maintaining the first color order and encoded into encoded data,
Decoding the encoded data into the image data based on the predetermined condition;
Converting a color order of a plurality of colors when encoding or decoding from the first color order to a second color order different from the first color order and set in an external device;
An image data processing program for outputting the decoded image data of the second color order to an external device.
JP2005214910A 2005-07-25 2005-07-25 Image data processing apparatus, image data processing method, and image data processing program Expired - Fee Related JP4609223B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005214910A JP4609223B2 (en) 2005-07-25 2005-07-25 Image data processing apparatus, image data processing method, and image data processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005214910A JP4609223B2 (en) 2005-07-25 2005-07-25 Image data processing apparatus, image data processing method, and image data processing program

Publications (2)

Publication Number Publication Date
JP2007036489A true JP2007036489A (en) 2007-02-08
JP4609223B2 JP4609223B2 (en) 2011-01-12

Family

ID=37795225

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005214910A Expired - Fee Related JP4609223B2 (en) 2005-07-25 2005-07-25 Image data processing apparatus, image data processing method, and image data processing program

Country Status (1)

Country Link
JP (1) JP4609223B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100864208B1 (en) * 2007-05-04 2008-10-17 충북대학교 산학협력단 A driving circuit of display device and a method for encoding/decoding data for the display device
JP2009230489A (en) * 2008-03-24 2009-10-08 Fuji Xerox Co Ltd Image processor and image processing program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05162345A (en) * 1991-12-13 1993-06-29 Seiko Instr Inc Image processing apparatus
JPH09224253A (en) * 1996-02-19 1997-08-26 Fuji Xerox Co Ltd Image coder and image decoder
JP2000030047A (en) * 1998-07-15 2000-01-28 Sony Corp Encoder, its method, decoder and its method
JP2002297331A (en) * 2001-03-30 2002-10-11 Ricoh Co Ltd Device/method/program for data conversion and computer-readable recording medium with the program recorded thereon
JP2002335407A (en) * 2001-05-08 2002-11-22 Fuji Xerox Co Ltd Image encoder and image encoding method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05162345A (en) * 1991-12-13 1993-06-29 Seiko Instr Inc Image processing apparatus
JPH09224253A (en) * 1996-02-19 1997-08-26 Fuji Xerox Co Ltd Image coder and image decoder
JP2000030047A (en) * 1998-07-15 2000-01-28 Sony Corp Encoder, its method, decoder and its method
JP2002297331A (en) * 2001-03-30 2002-10-11 Ricoh Co Ltd Device/method/program for data conversion and computer-readable recording medium with the program recorded thereon
JP2002335407A (en) * 2001-05-08 2002-11-22 Fuji Xerox Co Ltd Image encoder and image encoding method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100864208B1 (en) * 2007-05-04 2008-10-17 충북대학교 산학협력단 A driving circuit of display device and a method for encoding/decoding data for the display device
JP2009230489A (en) * 2008-03-24 2009-10-08 Fuji Xerox Co Ltd Image processor and image processing program

Also Published As

Publication number Publication date
JP4609223B2 (en) 2011-01-12

Similar Documents

Publication Publication Date Title
JP3381827B2 (en) Color image encoding device and color image decoding device
JP5558767B2 (en) Image processing apparatus and processing method thereof
JP5158096B2 (en) Encoding data generation apparatus, encoding data generation method, decoding apparatus, and decoding method
TW393853B (en) A memory based vlsi architecture for image compression
JP2000295113A (en) Huffman coded data compressor
JP2011139164A (en) Image processing apparatus and processing method thereof
JP2015154363A (en) Image processing device, image processing method and image formation device
JP3694999B2 (en) Image encoding apparatus, image decoding apparatus, and methods thereof
JP4609223B2 (en) Image data processing apparatus, image data processing method, and image data processing program
JP2012019357A (en) Image processing device and compression method
JPS60197072A (en) Coding processing method of color picture information
JP5267147B2 (en) Image processing apparatus, image processing method, and computer program
JP4893674B2 (en) Image processing apparatus and image processing program
WO2010018494A1 (en) Image compression
JP2002335407A (en) Image encoder and image encoding method
JP2002133414A (en) Image processing method and its device and recording medium
JP2000287061A (en) Image processing unit
JP2009038740A (en) Image encoding device
JP6569242B2 (en) Image processing apparatus, image processing system, and image processing program
JP2007088825A (en) Image processor and image processing method
JP5523177B2 (en) Image coding apparatus and control method thereof
JP2010220131A (en) Apparatus and method for encoding image
JP6140973B2 (en) Image processing apparatus, image processing method, and program
JP2000092333A (en) Image coding and decoding device
JP2011193396A (en) Image processing apparatus, control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100615

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100816

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100927

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131022

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees