JP2013143609A - Image processing device, coding method and decoding method - Google Patents

Image processing device, coding method and decoding method Download PDF

Info

Publication number
JP2013143609A
JP2013143609A JP2012001854A JP2012001854A JP2013143609A JP 2013143609 A JP2013143609 A JP 2013143609A JP 2012001854 A JP2012001854 A JP 2012001854A JP 2012001854 A JP2012001854 A JP 2012001854A JP 2013143609 A JP2013143609 A JP 2013143609A
Authority
JP
Japan
Prior art keywords
plane
color
gradation
pixel
pixel value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012001854A
Other languages
Japanese (ja)
Inventor
Tatsuo Kumada
辰男 熊田
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2012001854A priority Critical patent/JP2013143609A/en
Publication of JP2013143609A publication Critical patent/JP2013143609A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To code or decode image data with the same method irrespective of a color space to which each pixel of the image data belongs.SOLUTION: An image processing device comprises: an aggregation processing unit for extracting a pixel from each of pieces of image data different in color space according to an arrangement position when the image data different in color space is aggregated, creating a pixel value plane for each color in which a pixel value of a color in a color space to which each extracted pixel belongs is mixed among the different color spaces, and creating an identification plane indicating the color space to which each pixel belongs; a coding unit for a gradation plane indicating a gradation of each color in the pixel value plane, and coding the pixel value according to a section of the gradation of each color to which the pixel value of each color in the pixel value plane belongs, and creating a code value plane indicating the code value; and decoding unit for specifying a color of each code value in the code value plane according to the color space indicated by the identification plane, and coding the code value of each specified color by using the gradation of each color indicated by the gradation plane.

Description

本発明は、画像処理装置、符号化方法及び復号化方法に関する。   The present invention relates to an image processing device, an encoding method, and a decoding method.

コピー機やプリンター等のプリント機器がプリント処理する画像データは、C(シアン)、M(マジェンタ)、Y(イエロー)、K(黒)の4色の色空間からなる画像データが一般的である。特殊な印刷に対応するため、別の色空間からなる画像データを処理できるプリント機器もある。一方、PC(パーソナルコンピューター)が表示し、編集する画像データは、R(赤)、G(緑)、B(青)の3色の色空間からなる画像データである。PCによって処理された画像データをプリント処理する場合、プリント機器は画像データの色空間をRGBからCMYKに色変換する。   Image data to be printed by a printing machine such as a copier or a printer is generally image data including four color spaces of C (cyan), M (magenta), Y (yellow), and K (black). . In order to support special printing, there is also a printing device that can process image data composed of another color space. On the other hand, image data displayed and edited by a PC (personal computer) is image data including three color spaces of R (red), G (green), and B (blue). When printing image data processed by the PC, the printing device converts the color space of the image data from RGB to CMYK.

近年、画像処理技術の向上によって処理される画像データのデータ量も増えているが、プリント機器に搭載できる記憶装置の容量には限りがある。そのため、画像データの保存時に符号化によって圧縮し、利用時に復号化によって伸張して、記憶装置に保存されるデータ量を削減している。   In recent years, the amount of image data to be processed has been increased due to improvements in image processing technology, but the capacity of a storage device that can be mounted on a printing device is limited. For this reason, the amount of data stored in the storage device is reduced by compressing the image data by encoding when storing the image data and expanding the image data by decoding when using the image data.

符号化及び復号化にはいろいろな方式があり、画像データの形態によって最適な方式が採用される。例えば、多値の画像データに適した方式として、JPEG(Joint Photographic Experts Group)が、2値の画像データに適した方式として、JBIG(Joint Bi-level Image experts Group)、ランレングス符号等が知られている。
また、文字か写真画かといった画像の属性によって、可逆式と非可逆式を切り替えることも行われている(例えば、特許文献1参照)。
There are various methods for encoding and decoding, and an optimal method is adopted depending on the form of image data. For example, JPEG (Joint Photographic Experts Group) is known as a method suitable for multivalued image data, and JBIG (Joint Bi-level Image experts Group), run-length code, etc. are known as methods suitable for binary image data. It has been.
In addition, switching between a reversible type and an irreversible type is performed depending on an image attribute such as a character or a photographic image (see, for example, Patent Document 1).

色空間が異なる画像データについても同様に、それぞれの色空間に適した符号化及び復号化の方式が必要である。しかし、色空間が異なる画像データを集約して1つの画像データが作成されることがある。このような画像データは各画素が属する色空間が異なるが、符号化及び復号化の際、画素毎に異なる色空間に応じて符号化及び復号化の方式を切り替えることは困難である。特に、DCT(Discrete Cosine Transform)を使用したJPEGやランレングス符号によれば、復号化によって符号化前の色空間が異なる画素の位置を再現することが難しい。
そのため、従来は色空間毎に画像データを分離して、それぞれの色空間に適した方式で符号化及び復号化を行っていた。
Similarly, for image data having different color spaces, encoding and decoding methods suitable for the respective color spaces are required. However, one piece of image data may be created by aggregating image data with different color spaces. Although such image data has different color spaces to which each pixel belongs, at the time of encoding and decoding, it is difficult to switch between encoding and decoding methods according to different color spaces for each pixel. In particular, according to JPEG or run-length code using DCT (Discrete Cosine Transform), it is difficult to reproduce the position of a pixel having a different color space before encoding by decoding.
Therefore, conventionally, image data is separated for each color space, and encoding and decoding are performed by a method suitable for each color space.

特開2006−120145号公報JP 2006-120145 A

もともと、多値の画像データを符号化又は復号化する処理自体が複雑であり、ハードウェアにより処理する場合は多数のメモリーやゲートが必要となる。それに加え、符号化及び復号化の処理を、異なる方式毎にそれぞれハードウェア化すれば、ハードウェアの規模が拡大し、コスト高を招く。
また、色空間別に符号化された画像データを記憶装置に保存すれば、記憶装置の使用領域に無駄が生じる。記憶装置から各色空間の画像データを読み出す際のアドレス管理も必要であり、煩雑である。
Originally, the process itself for encoding or decoding multi-valued image data is complicated, and a large number of memories and gates are required for processing by hardware. In addition, if the encoding and decoding processes are implemented in hardware for each different method, the scale of the hardware increases and the cost increases.
In addition, if image data encoded for each color space is stored in a storage device, use areas of the storage device are wasted. Address management is also necessary when reading out the image data of each color space from the storage device, which is complicated.

本発明の課題は、画像データの各画素が属する色空間によらず、同じ方式で符号化又は復号化することである。   An object of the present invention is to perform encoding or decoding in the same manner regardless of the color space to which each pixel of image data belongs.

請求項1に記載の発明によれば、
画像データを、BTC方式により符号化する符号化部と、
前記符号化部により符号化された画像データを、BTC方式により復号化する復号化部と、
色空間が異なる画像データを集約したときの配置位置に応じて、色空間が異なる画像データのそれぞれから画素を抽出し、抽出された各画素が属する色空間の色の画素値が、異なる色空間同士で混在する色毎の画素値プレーンを作成し、当該画素値プレーンにおいて各画素が属する色空間を表す識別プレーンを作成する集約処理部と、を備え、
前記符号化部は、
前記画素値プレーン中の各色の階調を表す階調プレーンを作成し、
前記画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって当該画素値を符号化し、その符号値を表す符号値プレーンを作成し、
前記階調プレーン、前記符号値プレーン、前記識別プレーンを符号データとして出力し、
前記復号化部は、
前記識別プレーンが表す色空間によって、前記符号値プレーンの各符号値の色を特定し、特定された各色の符号値を、前記階調プレーンが表す各色の階調を用いて復号化する画像処理装置が提供される。
According to the invention of claim 1,
An encoding unit that encodes image data by the BTC method;
A decoding unit that decodes the image data encoded by the encoding unit by a BTC method;
According to the arrangement position when the image data with different color spaces are aggregated, pixels are extracted from each of the image data with different color spaces, and the pixel values of the colors of the color spaces to which the extracted pixels belong are different color spaces An aggregation processing unit that creates a pixel value plane for each color mixed together and creates an identification plane that represents a color space to which each pixel belongs in the pixel value plane;
The encoding unit includes:
Create a gradation plane representing the gradation of each color in the pixel value plane,
The pixel value of each color in the pixel value plane is encoded according to which section of the gradation of each color belongs to create the code value plane representing the code value,
The gradation plane, the code value plane, and the identification plane are output as code data,
The decoding unit
Image processing for identifying the color of each code value of the code value plane by the color space represented by the identification plane, and decoding the code value of each identified color using the gradation of each color represented by the gradation plane An apparatus is provided.

請求項2に記載の発明によれば、
前記集約処理部は、異なる色空間のうち、色数が多い方の色空間の色の数だけ画素値プレーンを作成する請求項1に記載の画像処理装置が提供される。
According to invention of Claim 2,
The image processing apparatus according to claim 1, wherein the aggregation processing unit creates pixel value planes by the number of colors in a color space having a larger number of colors among different color spaces.

請求項3に記載の発明によれば、
前記画素値プレーンは、画素値のデータのビット数分のプレーンからなり、1プレーンが1ビットのデータを表し、
前記集約処理部は、前記識別プレーンを、何れかの色の画素値プレーンの最下位ビットのプレーンと置き換える請求項1又は2に記載の画像処理装置が提供される。
According to invention of Claim 3,
The pixel value plane is composed of planes corresponding to the number of bits of pixel value data, and one plane represents 1-bit data.
The image processing apparatus according to claim 1, wherein the aggregation processing unit replaces the identification plane with a least significant bit plane of a pixel value plane of any color.

請求項4に記載の発明によれば、
画像データを、BTC方式により符号化する符号化部と、
色空間が異なる画像データを集約したときの配置位置に応じて、色空間が異なる画像データのそれぞれから画素を抽出し、各画素が属する色空間の色の画素値を、異なる色空間同士で混在させた色毎の画素値プレーンを作成し、当該画素値プレーンにおいて各画素が属する色空間を表す識別プレーンを作成する集約処理部と、を備え、
前記符号化部は、
前記画素値プレーン中の各色の階調を表す階調プレーンを作成し、
前記画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって当該画素値を符号化し、その符号値を表す符号値プレーンを作成し、
前記階調プレーン、前記符号値プレーン、前記識別プレーンを符号データとして出力する画像処理装置が提供される。
According to invention of Claim 4,
An encoding unit that encodes image data by the BTC method;
Pixels are extracted from each of the image data with different color spaces according to the arrangement position when the image data with different color spaces are aggregated, and the pixel values of the colors of the color space to which each pixel belongs are mixed in different color spaces An aggregation processing unit that creates a pixel value plane for each color and creates an identification plane representing a color space to which each pixel belongs in the pixel value plane,
The encoding unit includes:
Create a gradation plane representing the gradation of each color in the pixel value plane,
The pixel value of each color in the pixel value plane is encoded according to which section of the gradation of each color belongs to create the code value plane representing the code value,
An image processing apparatus is provided that outputs the gradation plane, the code value plane, and the identification plane as code data.

請求項5に記載の発明によれば、
異なる色空間の色の画素値が混在する画素値プレーン中の各色の階調を表す階調プレーン、画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって符号化された画素値の符号値を表す符号値プレーン、各画素が属する色空間を表す識別プレーンからなる符号データを、BTC方式により復号化する復号化部を備え、
前記復号化部は、前記識別プレーンが表す色空間によって、前記符号値プレーンの各色の符号値を特定し、特定された各色の符号値を、前記階調プレーンが表す各色の階調を用いて復号化する画像処理装置が提供される。
According to the invention of claim 5,
A gradation plane that represents the gradation of each color in a pixel value plane in which pixel values of colors in different color spaces are mixed, and encoding according to which division of the gradation of each color the pixel value of each color in the pixel value plane belongs to A decoding unit that decodes code data composed of a code value plane representing a code value of the pixel value obtained and an identification plane representing a color space to which each pixel belongs;
The decoding unit identifies a code value of each color of the code value plane by using a color space represented by the identification plane, and uses the gradation of each color represented by the gradation plane by using the code value of each identified color. An image processing apparatus for decoding is provided.

請求項6に記載の発明によれば、
色空間が異なる画像データを集約したときの配置位置に応じて、色空間が異なる画像データのそれぞれから画素を抽出し、各画素が属する色空間の色の画素値を、異なる色空間同士で混在させた色毎の画素値プレーンを作成する工程と、
前記画素値プレーンにおいて各画素が属する色空間を表す識別プレーンを作成する工程と、
前記画素値プレーン中の各色の階調を表す階調プレーンを作成する工程と、
前記画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって当該画素値を符号化し、その符号値を表す符号値プレーンを作成する工程と、
前記階調プレーン、前記符号値プレーン、前記識別プレーンを符号データとして出力する工程と、
を含む符号化方法が提供される。
According to the invention of claim 6,
Pixels are extracted from each of the image data with different color spaces according to the arrangement position when the image data with different color spaces are aggregated, and the pixel values of the colors of the color space to which each pixel belongs are mixed in different color spaces Creating a pixel value plane for each color,
Creating an identification plane representing a color space to which each pixel belongs in the pixel value plane;
Creating a gradation plane representing the gradation of each color in the pixel value plane;
Encoding the pixel value according to which section of the gradation of each color the pixel value of each color in the pixel value plane, and creating a code value plane representing the code value;
Outputting the gradation plane, the code value plane, and the identification plane as code data;
Is provided.

請求項7に記載の発明によれば、
異なる色空間の色の画素値が混在する画素値プレーン中の各色の階調を表す階調プレーン、当該画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって符号化された符号値を表す符号値プレーン、各画素が属する色空間を表す識別プレーンからなる符号データを入力する工程と、
前記識別プレーンが表す色空間によって、前記符号値プレーンの各色の符号値を特定し、特定された各色の符号値を、前記階調プレーンが表す各色の階調を用いて復号化する工程と、
を含む復号化方法が提供される。
According to the invention of claim 7,
A gradation plane that represents the gradation of each color in a pixel value plane in which pixel values of colors in different color spaces are mixed, and a code depending on which division of the gradation of each color the pixel value of each color in the pixel value plane belongs to A code value plane consisting of a code value plane representing a coded code value and an identification plane representing a color space to which each pixel belongs; and
Identifying the code value of each color of the code value plane by the color space represented by the identification plane, and decoding the code value of each identified color using the gradation of each color represented by the gradation plane;
Is provided.

本発明によれば、画像データの各画素が属する色空間によらず、同じBTC方式で符号化又は復号化することができる。色空間毎に異なる方式の符号化又は復号化の処理回路を設ける必要が無く、ハードウェア規模の拡大を回避できる。BTC方式によれば、符号化及び復号化を経ても、色空間が異なる画素の位置と画素値の関係を維持することができ、画像データの再現性に優れる。
また、色空間が異なる画像データを集約して1つの画像データとして符号化することにより、符号データのデータ量を削減することができる。メモリー資源を有効活用できるとともに符号データの保存や読出しも容易となる。
According to the present invention, encoding or decoding can be performed by the same BTC method regardless of the color space to which each pixel of image data belongs. There is no need to provide a different encoding or decoding processing circuit for each color space, and an increase in hardware scale can be avoided. According to the BTC method, even after encoding and decoding, it is possible to maintain the relationship between pixel positions and pixel values in different color spaces, and excellent image data reproducibility.
In addition, the amount of code data can be reduced by consolidating image data having different color spaces and encoding the image data as one image data. This makes it possible to effectively use memory resources and to easily save and read code data.

MFPの機能ブロック図である。2 is a functional block diagram of an MFP. FIG. 本実施の形態に係る画像処理装置の機能ブロック図である。It is a functional block diagram of the image processing apparatus which concerns on this Embodiment. CMYKの色空間に属する4×4画素の画素値を表す画素値プレーンの例を示す図である。It is a figure which shows the example of the pixel value plane showing the pixel value of 4x4 pixel which belongs to the color space of CMYK. RGBの色空間に属する4×4画素の画素値を表す画素値プレーンの例を示す図である。It is a figure which shows the example of the pixel value plane showing the pixel value of 4x4 pixel which belongs to RGB color space. 1プレーンにおける4×4画素を示す図である。It is a figure which shows 4x4 pixel in 1 plane. 単一の色空間からなる画像データの符号化によって得られた符号データの例を示す図である。It is a figure which shows the example of the code data obtained by encoding the image data which consists of a single color space. 色空間が異なる画像データを集約し、1つの画像データを作成する際に、画像処理装置が実行する処理のフローチャートである。6 is a flowchart of processing executed by an image processing apparatus when image data having different color spaces are aggregated to create one image data. CMYKとRGBの色空間同士で混在する各色の画素値を表す画素値プレーンと、識別プレーンの例を示す図である。It is a figure which shows the example of the pixel value plane showing the pixel value of each color mixed in the color spaces of CMYK and RGB, and an identification plane. 0ビット目のKの画素値プレーンが、識別プレーンに置き換えられた例を示す図である。It is a figure which shows the example by which the K pixel value plane of the 0th bit was replaced by the identification plane. 色空間が異なる画像データを集約して作成された、1つの画像データの例を示す図である。It is a figure which shows the example of one image data produced by aggregating the image data from which a color space differs. 画像処理装置が実行する符号化の処理のフローチャートである。It is a flowchart of the process of the encoding which an image processing apparatus performs. 異なる色空間からなる画像データの符号化によって得られた符号データの一例を示す図である。It is a figure which shows an example of the code data obtained by the encoding of the image data which consists of different color spaces. 画像処理装置が実行する復号化の処理のフローチャートである。It is a flowchart of the process of the decoding which an image processing apparatus performs.

以下、図面を参照して本発明の実施の形態について説明する。   Embodiments of the present invention will be described below with reference to the drawings.

〔MFP〕
図1は、本実施の形態に係る画像処理装置Gが搭載されたMFP(Multifunction Peripheral)10の機能ブロック図である。
図1に示すように、MFP10は、制御部1、スキャナー2、読取処理部3、バッファー4、通信部5、画像メモリー6、保存制御部7a、記憶装置7、プリント部8、画像処理装置Gを備えて構成されている。
[MFP]
FIG. 1 is a functional block diagram of an MFP (Multifunction Peripheral) 10 equipped with an image processing apparatus G according to the present embodiment.
As shown in FIG. 1, the MFP 10 includes a control unit 1, a scanner 2, a reading processing unit 3, a buffer 4, a communication unit 5, an image memory 6, a storage control unit 7a, a storage device 7, a printing unit 8, and an image processing device G. It is configured with.

制御部1は、CPU(Central Processing Unit)、RAM(Random Access Memory)等を備えている。制御部1は、記憶装置7に記憶されているプログラムを読み出し、当該プログラムを実行することよりMFP10の各部を制御する。例えば、制御部1は画像処理装置Gに画像データを入力し、画像処理させる。また、制御部1は画像メモリー6に書き込まれた画像データをプリント部8に出力し、プリント処理させる。   The control unit 1 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), and the like. The control unit 1 reads out a program stored in the storage device 7 and controls each unit of the MFP 10 by executing the program. For example, the control unit 1 inputs image data to the image processing apparatus G and causes it to perform image processing. In addition, the control unit 1 outputs the image data written in the image memory 6 to the printing unit 8 for print processing.

スキャナー2は、コンタクトガラス、コンタクトガラス上の原稿に光を照射する光源、その反射光を導くミラー群、ミラー群により導かれた光を結像する集光レンズ、結像された光を光電変換し、読取ライン毎のアナログの画像信号を生成する光電変換素子等を備えている。スキャナー2によって生成されたアナログの画像信号は、R(赤)、G(緑)、B(青)の色空間からなり、読取処理部3に出力される。   The scanner 2 includes a contact glass, a light source that irradiates light on a document on the contact glass, a mirror group that guides the reflected light, a condensing lens that forms an image of light guided by the mirror group, and a photoelectric conversion of the imaged light. And a photoelectric conversion element for generating an analog image signal for each reading line. The analog image signal generated by the scanner 2 is composed of R (red), G (green), and B (blue) color spaces, and is output to the reading processing unit 3.

読取処理部3は、スキャナー2から出力されたアナログの画像信号を、所定のビット幅のデジタルの画像データにA/D変換する。読取処理部3は、画像データにシェーディング補正処理、MTFγ補正処理を施す。これら補正処理によって得られた画像データは、バッファー4に一時的に保持された後、画像処理装置Gに出力される。   The reading processing unit 3 A / D converts the analog image signal output from the scanner 2 into digital image data having a predetermined bit width. The reading processing unit 3 performs shading correction processing and MTFγ correction processing on the image data. The image data obtained by these correction processes is temporarily stored in the buffer 4 and then output to the image processing apparatus G.

バッファー4は、画像データを一時的に保持するメモリーである。   The buffer 4 is a memory that temporarily holds image data.

通信部5は、通信用のインターフェイスを備え、ネットワークNを介してプリントコントローラー20又はPC30と通信する。ネットワークNは、LAN(Local Area Network)等である。
通信部5は、PC30からPDL(Page Description Language)データを受信し、画像メモリー6に出力する。また、プリントコントローラー20が、PC30から送信されたPDLデータをラスタライズ処理し、生成した画像データを、通信部5が受信し、バッファー4に出力する。この画像データはC(シアン)、M(マジェンタ)、Y(イエロー)、K(黒)の色空間からなる。
The communication unit 5 includes a communication interface, and communicates with the print controller 20 or the PC 30 via the network N. The network N is a LAN (Local Area Network) or the like.
The communication unit 5 receives PDL (Page Description Language) data from the PC 30 and outputs it to the image memory 6. Further, the print controller 20 rasterizes the PDL data transmitted from the PC 30, and the generated image data is received by the communication unit 5 and output to the buffer 4. This image data consists of C (cyan), M (magenta), Y (yellow), and K (black) color spaces.

画像メモリー6は、画像処理装置Gにより画像データが符号化された符号データ又は当該符号データの復号化によって得られた画像データ、PC30から送信されたPDLデータ又は当該PDLデータから制御部1によって生成された中間言語データ等を一時的に保持する。画像メモリー6としては、DRAM(dynamic RAM)等を用いることができる。   The image memory 6 is generated by the control unit 1 from code data obtained by encoding image data by the image processing apparatus G, image data obtained by decoding the code data, PDL data transmitted from the PC 30, or the PDL data. Temporarily store the intermediate language data. As the image memory 6, a DRAM (dynamic RAM) or the like can be used.

記憶装置7は制御部1に用いられるプログラム、プログラムの実行に必要なデータ等を記憶している。記憶装置7としては、ハードディスク等の不揮発性の大容量のメモリーを用いることができる。   The storage device 7 stores a program used for the control unit 1, data necessary for executing the program, and the like. As the storage device 7, a nonvolatile large-capacity memory such as a hard disk can be used.

記憶装置7は、画像処理装置Gにより画像データの符号データを記憶することができる。
保存制御部7aは、画像メモリー6に保持されている符号データを記憶装置7に書き込む。また、保存制御部7aは、記憶装置7に保存された符号データを読み出し、画像メモリー6に書き込む。
The storage device 7 can store the code data of the image data by the image processing device G.
The storage control unit 7 a writes the code data held in the image memory 6 to the storage device 7. Further, the storage control unit 7 a reads the code data stored in the storage device 7 and writes it in the image memory 6.

プリント部8は、記憶装置7から転送された画像データを一時的に保持するバッファー、バッファーに保持された画像データをPWM(Pulse Width Modulation)変換し、プリンターエンジンによるプリントを制御するプリント制御部、PWM変換された画像データに基づいて、用紙上にトナー画像を形成するプリンターエンジン等を備えている。プリンターエンジンは、C、M、Y、Kの各色のトナーを備え、カラー画像を形成することができる。   The print unit 8 is a buffer that temporarily holds the image data transferred from the storage device 7, a print control unit that performs PWM (Pulse Width Modulation) conversion on the image data held in the buffer, and controls printing by the printer engine. A printer engine or the like that forms a toner image on a sheet based on the PWM-converted image data is provided. The printer engine includes toners of C, M, Y, and K colors, and can form a color image.

画像処理装置Gは、画像データに各種画像処理を施す。画像処理としては、色変換処理、符号化の処理、復号化の処理、画像の拡大、縮小、回転、ページ割付等の画像処理の他、スクリーン処理等が挙げられる。また、画像処理装置Gは、色空間が異なる画像データを集約し、1つの画像データを作成することができる。   The image processing apparatus G performs various image processes on the image data. Examples of the image processing include color conversion processing, encoding processing, decoding processing, image processing such as image enlargement, reduction, rotation, page allocation, and screen processing. Further, the image processing apparatus G can collect image data having different color spaces and create one image data.

〔画像処理装置〕
図2は、画像処理装置Gの機能ブロック図である。なお、図2は画像データの符号化及び復号化に係る主な構成部のみ示している。
図2に示すように、画像処理装置Gは、色変換部11、符号化部12、復号化部13、集約処理部14を備えて構成されている。
[Image processing device]
FIG. 2 is a functional block diagram of the image processing apparatus G. Note that FIG. 2 shows only main components related to encoding and decoding of image data.
As illustrated in FIG. 2, the image processing apparatus G includes a color conversion unit 11, an encoding unit 12, a decoding unit 13, and an aggregation processing unit 14.

色変換部11は、RGBの入力値に対し、CMYKの出力値が定められたLUTを備え、このLUTを用いて、入力された画像データの色空間をRGBからCMYKに変換する。   The color conversion unit 11 includes an LUT in which CMYK output values are determined for RGB input values, and converts the color space of the input image data from RGB to CMYK using the LUT.

符号化部12は、入力された画像データをBTC(Block Truncation Coding)方式により符号化し、圧縮する。符号化部12は、符号化によって得られた符号データを、画像メモリー6に書き込む。   The encoding unit 12 encodes and compresses the input image data by a BTC (Block Truncation Coding) method. The encoding unit 12 writes the code data obtained by encoding into the image memory 6.

復号化部13は、入力された符号データをBTC方式により復号化し、伸張する。復号化部13は、復号化によって得られた画像データを、バッファー4に書き込む。   The decoding unit 13 decodes the input code data by the BTC method and decompresses the code data. The decoding unit 13 writes the image data obtained by the decoding into the buffer 4.

集約処理部14は、色空間が異なる画像データを集約し、1つの画像データを作成する。   The aggregation processing unit 14 aggregates image data with different color spaces and creates one image data.

〔画像データの入力〕
上記MFP10が、画像データを得て記憶装置7に保存するまでの流れを説明する。画像データは、色空間がCMYKである画像データと、RGBである画像データがある。
[Input image data]
A flow until the MFP 10 obtains image data and stores it in the storage device 7 will be described. Image data includes image data whose color space is CMYK and image data whose color space is RGB.

CMYKの画像データは、スキャナー2又はプリントコントローラー20によって得られる。
スキャナー2による場合、スキャナー2によって読み取られた画像信号が、読取処理部3によってRGBの画像データにA/D変換され、バッファー4に保持される。制御部1はバッファー4から画像データを読み出して、画像処理装置Gに転送する。画像処理装置Gは、RGBの画像データを色変換し、CMYKの画像データを生成する。画像処理装置Gは、CMYKの画像データを符号化し、その符号データを画像メモリー6に書き込む。保存制御部7aは、画像メモリー6から符号データを読み出して記憶装置7に保存する。
一方、プリントコントローラー20によって作成され、送信されたCMYKの画像データも同様に、バッファー4に保持され、画像処理装置Gに転送される。画像処理装置Gは、CMYKの画像データを符号化し、その符号データを画像メモリー6に書き込む。保存制御部7aは、画像メモリー6から符号データを読み出して記憶装置7に保存する。
CMYK image data is obtained by the scanner 2 or the print controller 20.
In the case of the scanner 2, the image signal read by the scanner 2 is A / D converted into RGB image data by the reading processing unit 3 and held in the buffer 4. The control unit 1 reads the image data from the buffer 4 and transfers it to the image processing apparatus G. The image processing apparatus G performs color conversion on RGB image data to generate CMYK image data. The image processing apparatus G encodes CMYK image data and writes the encoded data in the image memory 6. The storage control unit 7 a reads the code data from the image memory 6 and stores it in the storage device 7.
On the other hand, the CMYK image data created and transmitted by the print controller 20 is similarly held in the buffer 4 and transferred to the image processing apparatus G. The image processing apparatus G encodes CMYK image data and writes the encoded data in the image memory 6. The storage control unit 7 a reads the code data from the image memory 6 and stores it in the storage device 7.

RGBの画像データは、PC30により送信されたPDLデータをラスタライズ処理することによって得られる。
PC30からPDLデータが送信されると、制御部1は当該PDLデータを画像メモリー6に書き込む。制御部1は、PDLデータを解析し、中間言語データを作成して画像メモリー6に書き込む。制御部1は、この中間言語データに基づき、ビットマップのRGBの画像データを描画してバッファー4に書き込む。制御部1は、バッファー4からRGBの画像データを読み出し、画像処理装置Gに転送する。画像処理装置Gは、RGBの画像データを符号化し、その符号データを画像メモリー6に書き込む。保存制御部7aは、画像メモリー6から符号データを読み出して、記憶装置7に保存する。
RGB image data is obtained by rasterizing the PDL data transmitted from the PC 30.
When PDL data is transmitted from the PC 30, the control unit 1 writes the PDL data in the image memory 6. The control unit 1 analyzes the PDL data, creates intermediate language data, and writes it in the image memory 6. Based on the intermediate language data, the control unit 1 draws RGB image data of the bitmap and writes it in the buffer 4. The control unit 1 reads RGB image data from the buffer 4 and transfers it to the image processing apparatus G. The image processing apparatus G encodes RGB image data and writes the encoded data in the image memory 6. The storage control unit 7 a reads the code data from the image memory 6 and stores it in the storage device 7.

〔画像データの出力〕
MFP10は、記憶装置7に保存された符号データを、プリント部8によってプリント処理することもできるし、PC30に転送することもできる。
プリント処理する場合、保存制御部7aは記憶装置7から符号データを読み出して画像メモリー6に書き込む。制御部1は画像メモリー6から符号データを読み出して画像処理装置Gに転送する。画像処理装置Gは、符号データを復号化し、復号化によって得られた画像データをバッファー4に書き込む。制御部1は、バッファー4から画像データを読み出して画像メモリー6に保存する。制御部1は、画像メモリー6から画像データをページ単位で読み出してプリント部8に転送する。プリント部8は、転送された画像データをプリント処理する。
[Image data output]
The MFP 10 can print the code data stored in the storage device 7 by the printing unit 8 or transfer it to the PC 30.
When the print process is performed, the storage control unit 7 a reads the code data from the storage device 7 and writes it in the image memory 6. The control unit 1 reads the code data from the image memory 6 and transfers it to the image processing apparatus G. The image processing device G decodes the code data and writes the image data obtained by the decoding into the buffer 4. The control unit 1 reads the image data from the buffer 4 and stores it in the image memory 6. The control unit 1 reads out image data from the image memory 6 in units of pages and transfers it to the printing unit 8. The print unit 8 prints the transferred image data.

PC30に転送する場合、保存制御部7aは記憶装置7から符号データを読み出して画像メモリー6に書き込む。通信部5は、画像メモリー6から符号データを読み出してPC30に送信する。符号データはPC30において復号化され、復号化によって得られた画像データが、表示、編集、保存等に供される。   When transferring to the PC 30, the storage control unit 7 a reads the code data from the storage device 7 and writes it in the image memory 6. The communication unit 5 reads the code data from the image memory 6 and transmits it to the PC 30. The code data is decoded by the PC 30, and the image data obtained by the decoding is used for display, editing, storage, and the like.

〔単一の色空間からなる画像データの符号化及び復号化〕
画像処理装置Gは、画像データの各画素が単一の色空間であっても異なる色空間であっても、同じBTC方式により符号化又は復号化することができる。
以下、各画素が単一の色空間からなる画像データを符号化、復号化する際の画像処理装置Gの処理内容を説明する。
[Encoding and decoding of image data consisting of a single color space]
The image processing apparatus G can perform encoding or decoding by the same BTC method regardless of whether each pixel of image data is a single color space or a different color space.
Hereinafter, processing contents of the image processing apparatus G when encoding and decoding image data in which each pixel has a single color space will be described.

符号化部12は、符号化する画像データを4×4画素単位で入力する。各画素の画素値は8ビットのデータである。
CMYKの画像データは、各画素がC、M、Y、Kの各色の画素値を持つ。各画素の画素値を色別に分けると、CMYKの4×4画素の画像データを、図3に示すようにC、M、Y、Kの各色の画素値プレーン101〜104により表すことができる。画素値プレーンは、画素値のデータのビット数分のプレーンからなる。1プレーンは4×4画素からなり、1画素が1ビットのデータを表すデータ層である。画素値は8ビットのデータであるので、各色の画素値プレーンは8つのプレーンから構成されている。
RGBの画像データについても同様であり、図4に示すように、色空間がRGBの画像データを、R、G、Bの3色の画素値プレーン201〜203により表すことができる。
The encoding unit 12 inputs image data to be encoded in units of 4 × 4 pixels. The pixel value of each pixel is 8-bit data.
In the CMYK image data, each pixel has a pixel value of each color of C, M, Y, and K. If the pixel values of each pixel are classified by color, CMYK 4 × 4 pixel image data can be represented by pixel value planes 101 to 104 of C, M, Y, and K colors as shown in FIG. The pixel value plane is composed of planes for the number of bits of pixel value data. One plane is a data layer composed of 4 × 4 pixels, and one pixel represents 1-bit data. Since the pixel value is 8-bit data, the pixel value plane of each color is composed of eight planes.
The same applies to RGB image data. As shown in FIG. 4, RGB image data having a color space of RGB can be represented by pixel value planes 201 to 203 of three colors of R, G, and B.

符号化部12は、画像データの色空間がCMYKであればそのうちの何れか1色に注目し、画像データの色空間がRGBであればそのうちの何れか1色に注目する。符号化部12は、4×4画素の各色の画素値プレーンのうち、注目色の画素値プレーンにおいて、4×4画素の画素値の最大値と最小値を求める。この最大値と最小値が、4×4画素の階調を表す。   The encoding unit 12 pays attention to any one of the colors if the color space of the image data is CMYK, and pays attention to any one of the colors if the color space of the image data is RGB. The encoding unit 12 obtains the maximum value and the minimum value of the pixel values of 4 × 4 pixels in the pixel value plane of the target color among the pixel value planes of each color of 4 × 4 pixels. The maximum value and the minimum value represent the gradation of 4 × 4 pixels.

図5に示すように、4×4画素の各画素を、主走査方向i(iは0〜3の整数)、副走査方向j(jは0〜3の整数)のそれぞれにおける位置によってijと表し、各画素ijの画素値をPijと表すと、最大値Max、最小値minは下記式により求められる。
Max=MAX{P00,P10,P20,P30,P01,P11,P21,P31,P02,P12,P22,P32,P03,P13,P23,P33}
min=MIN{P00,P10,P20,P30,P01,P11,P21,P31,P02,P12,P22,P32,P03,P13,P23,P33}
上記式において、MAX{}は{}中の要素のうち、最大値を持つ要素を出力する関数を表す。MIN{}は、{}中の要素のうち、最小値を持つ要素を出力する関数を表す。
As shown in FIG. 5, each pixel of 4 × 4 pixels is set to ij depending on the position in the main scanning direction i (i is an integer of 0 to 3) and the sub scanning direction j (j is an integer of 0 to 3). When the pixel value of each pixel ij is expressed as Pij, the maximum value Max and the minimum value min are obtained by the following equations.
Max = MAX {P00, P10, P20, P30, P01, P11, P21, P31, P02, P12, P22, P32, P03, P13, P23, P33}
min = MIN {P00, P10, P20, P30, P01, P11, P21, P31, P02, P12, P22, P32, P03, P13, P23, P33}
In the above expression, MAX {} represents a function that outputs an element having the maximum value among elements in {}. MIN {} represents a function that outputs an element having the minimum value among the elements in {}.

符号化部12は、求めた最大値Maxと最小値minから閾値THnを算出する。ここでは、8ビットの画素値を3ビットの符号値に変換するため、9つの閾値TH0〜TH8を算出する例を示す。閾値TH0〜TH8の算出式は、以下の通りである。
TH8=Max
TH7=TH6+(Max−min)/8
TH6=TH5+(Max−min)/8
TH5=TH4+(Max−min)/8
TH4=TH3+(Max−min)/8
TH3=TH2+(Max−min)/8
TH2=TH1+(Max−min)/8
TH1=TH0+(Max−min)/8
TH0=min
The encoding unit 12 calculates a threshold value THn from the obtained maximum value Max and minimum value min. Here, an example is shown in which nine threshold values TH0 to TH8 are calculated in order to convert an 8-bit pixel value into a 3-bit code value. The calculation formula of the thresholds TH0 to TH8 is as follows.
TH8 = Max
TH7 = TH6 + (Max-min) / 8
TH6 = TH5 + (Max-min) / 8
TH5 = TH4 + (Max-min) / 8
TH4 = TH3 + (Max-min) / 8
TH3 = TH2 + (Max-min) / 8
TH2 = TH1 + (Max-min) / 8
TH1 = TH0 + (Max-min) / 8
TH0 = min

符号化部12は、閾値THnによって、注目色の画素値Pijが注目色の階調のどの区分に属するかを判断し、属する区分に応じて、画素値Pijを符号化し、符号値φijに変換する。符号値φijは、閾値THnと画素値Pijとの大小関係から、次のように求められる。
TH7<Pij≦TH8のとき、φij=111
TH6<Pij≦TH7のとき、φij=110
TH5<Pij≦TH6のとき、φij=101
TH4<Pij≦TH5のとき、φij=100
TH3<Pij≦TH4のとき、φij=011
TH2<Pij≦TH3のとき、φij=010
TH1<Pij≦TH2のとき、φij=001
TH0≦Pij≦TH1のとき、φij=000
The encoding unit 12 determines which section of the gradation of the target color the pixel value Pij of the target color belongs to the threshold THn, and encodes the pixel value Pij according to the section to which the target color pixel value Pij belongs, and converts the pixel value Pij into a code value φij To do. The code value φij is obtained as follows from the magnitude relationship between the threshold value THn and the pixel value Pij.
When TH7 <Pij ≦ TH8, φij = 111
When TH6 <Pij ≦ TH7, φij = 110
When TH5 <Pij ≦ TH6, φij = 101
When TH4 <Pij ≦ TH5, φij = 100
When TH3 <Pij ≦ TH4, φij = 011
When TH2 <Pij ≦ TH3, φij = 010
When TH1 <Pij ≦ TH2, φij = 001
When TH0 ≦ Pij ≦ TH1, φij = 000

符号化部12は、注目色を切り替えて上記の符号化の処理を繰り返し、全ての色の画素値プレーンについて、画素値Pijを符号値φijに変換し、4×4画素の符号値φijを表す符号値プレーンを作成する。   The encoding unit 12 switches the target color and repeats the above encoding process, converts the pixel value Pij into the code value φij for the pixel value planes of all colors, and represents the code value φij of 4 × 4 pixels. Create a code value plane.

符号化部12は、画素値プレーン中の各色の階調を表す階調プレーンを作成する。ここでは、階調を表す階調プレーンとして、各色について求めた最大値Max、最小値minを表す階調プレーンの例を挙げるが、階調を表すことができるのであれば、画素値プレーンの各画素値の平均値や中間値等の他の値を採用してもよい。
階調プレーンは、画素値プレーン等と同じ構造であり、1プレーンが4×4画素からなり、1画素が1ビットのデータを表す。よって、1プレーンにより16ビットのデータを表すことができる。符号化部12は、ijが00〜03、10〜13の8つの画素に、最大値Maxの8ビットのデータを1ビットずつ割り当て、ijが20〜23、30〜33の8つの画素に、最小値minの8ビットのデータを1ビットずつ割り当てて、階調プレーンを作成する。
The encoding unit 12 creates a gradation plane that represents the gradation of each color in the pixel value plane. Here, an example of a gradation plane representing the maximum value Max and the minimum value min obtained for each color is given as the gradation plane representing the gradation. However, if the gradation can be represented, each pixel value plane Other values such as an average value or an intermediate value of pixel values may be adopted.
The gradation plane has the same structure as the pixel value plane and the like. One plane is composed of 4 × 4 pixels, and one pixel represents 1-bit data. Therefore, 16-bit data can be represented by one plane. The encoding unit 12 assigns 8-bit data of the maximum value Max one bit at a time to eight pixels having ij of 00 to 03 and 10 to 13, and ij has eight pixels of 20 to 23 and 30 to 33, A gradation plane is created by allocating 8-bit data of the minimum value min bit by bit.

符号化部12は、4×4画素の符号データとして、作成された符号値プレーン、階調プレーンを、画像メモリー6に書き込む。
符号化部12は、新たに4×4画素の画像データを入力し、上述の符号化の処理を繰り返して画像データの全画素を符号化する。
The encoding unit 12 writes the generated code value plane and gradation plane in the image memory 6 as 4 × 4 pixel code data.
The encoding unit 12 newly inputs 4 × 4 pixel image data, and repeats the above-described encoding process to encode all the pixels of the image data.

図6は、CMYKの各色の符号値プレーン111〜114、階調プレーン121〜124の例を示している。
図6に示すように、符号データは、CMYKの4色×4ビットの合計16プレーンからなる。各プレーンのうち、0ビット目の階調プレーン121〜124は、各色の最大値Maxと最小値minのそれぞれ8ビットのデータを表す。1〜3ビット目の符号値プレーン111〜114は、3ビットの符号値φijのデータを表す。
図6はCMYKの色空間の符号データ例であるが、RGBの色空間の場合、符号値プレーンがRGBの3色分になり、符号データは3色×4ビットの合計12プレーンからなる。
FIG. 6 shows an example of code value planes 111 to 114 and gradation planes 121 to 124 for each color of CMYK.
As shown in FIG. 6, the code data consists of a total of 16 planes of 4 colors × 4 bits of CMYK. Among the planes, the 0th bit gradation planes 121 to 124 each represent 8-bit data of the maximum value Max and the minimum value min of each color. The 1st to 3rd bit code value planes 111 to 114 represent data of a 3 bit code value φij.
FIG. 6 shows an example of code data in the CMYK color space. In the case of the RGB color space, the code value plane is for three colors of RGB, and the code data is composed of a total of 12 planes of 3 colors × 4 bits.

このような符号値プレーン、階調プレーンからなる符号データを復号化する場合、復号化部13は、符号データを4×4画素単位で入力する。復号化部13は、CMYK又はRGBの各色空間の何れかの色に注目し、注目色の階調プレーンから階調を表す最大値Maxと最小値minのデータを得る。復号化部13は、得られた最大値Maxと最小値minを用いて、注目色の符号値プレーンの符号値φijを復号化し、8ビットの画素値のデータを得る。
復号化によって、符号値φijから求められる画素値をDijで表すと、画素値Dijの算出式は以下の通りである。
Dij=ΔT×φij+ΔT/2+min
ΔT=(Max−min)/8
When decoding the code data composed of such code value planes and gradation planes, the decoding unit 13 inputs the code data in units of 4 × 4 pixels. The decoding unit 13 pays attention to any color in each color space of CMYK or RGB, and obtains data of the maximum value Max and the minimum value min representing the gradation from the gradation plane of the attention color. Using the obtained maximum value Max and minimum value min, the decoding unit 13 decodes the code value φij of the code value plane of the target color to obtain 8-bit pixel value data.
When the pixel value obtained from the code value φij by decoding is represented by Dij, the formula for calculating the pixel value Dij is as follows.
Dij = ΔT × φij + ΔT / 2 + min
ΔT = (Max−min) / 8

復号化部13は、注目色を切り替えて上記の復号化の処理を繰り返し、全ての色の画素値プレーンについて、符号値φijを画素値Dijに変換し、4×4画素の画素値Dijを表す画素値プレーンを作成する。画素値プレーンは、図3又は図4に示すように、4×4画素の画素値Dijのデータを、1ビットずつ保持する8つのプレーンからなる。
復号化部13は、新たに4×4画素の符号データを入力し、上述の復号化の処理を繰り返して画像データの全画素を復号化する。
The decoding unit 13 switches the target color and repeats the above decoding process, converts the code value φij to the pixel value Dij for the pixel value planes of all colors, and represents the pixel value Dij of 4 × 4 pixels. Create a pixel value plane. As shown in FIG. 3 or FIG. 4, the pixel value plane is composed of eight planes that hold the data of the pixel value Dij of 4 × 4 pixels bit by bit.
The decoding unit 13 newly inputs 4 × 4 pixel code data, and repeats the decoding process described above to decode all the pixels of the image data.

〔色空間が異なる画素が混在する画像データの作成〕
画像処理装置Gは、色空間がRGBの画像データとCMYKの画像データが混在する1つの画像データを作成することができる。例えば、画像処理装置Gは、スキャナー2による読み取りの後、色変換によって得られたCMYKの画像データの一部に、PC30によって作成されたRGBの画像データが配置された画像データを作成することができる。以下、既に符号化され、記憶装置7に保存されているCMYKの色空間からなる符号データと、PC30によって作成され、入力されたRGBの色空間からなる画像データとを集約し、1つの画像データを作成する例を説明する。
[Create image data with mixed pixels in different color spaces]
The image processing apparatus G can create one image data in which image data of RGB color space and image data of CMYK are mixed. For example, the image processing apparatus G may create image data in which RGB image data created by the PC 30 is arranged in a part of CMYK image data obtained by color conversion after reading by the scanner 2. it can. Hereinafter, the code data composed of the CMYK color space that has already been encoded and stored in the storage device 7 and the image data composed of the RGB color space created and input by the PC 30 are aggregated to obtain one image data. An example of creating is described.

保存制御部7aは、記憶装置7からCMYKの単一の色空間からなる符号データを読み出して、画像メモリー6に書き込む。制御部1は、画像メモリー6からこの符号データを読み出して画像処理装置Gに転送する。画像処理装置Gは、転送された符号データを復号化し、得られた画像データをバッファー4に書き込む。
一方、制御部1は、通信部5を介してPC30から送信され、画像メモリー6に保持されたPDLデータを、中間言語データに変換して、画像メモリー6に書き込む。制御部1は、中間言語データに基づいてビットマップの画像データを、RGBの色空間によって描画し、バッファー4に書き込む。
画像処理装置Gは、バッファー4に保持されているCMYKの画像データとRGBの画像データを集約し、色空間が異なる画素が混在する1つの画像データを作成する。
The storage control unit 7 a reads out code data composed of a single color space of CMYK from the storage device 7 and writes it into the image memory 6. The control unit 1 reads this code data from the image memory 6 and transfers it to the image processing apparatus G. The image processing apparatus G decodes the transferred code data and writes the obtained image data in the buffer 4.
On the other hand, the control unit 1 converts the PDL data transmitted from the PC 30 via the communication unit 5 and held in the image memory 6 into intermediate language data and writes the intermediate language data in the image memory 6. The control unit 1 draws bitmap image data in the RGB color space based on the intermediate language data, and writes it in the buffer 4.
The image processing apparatus G aggregates CMYK image data and RGB image data held in the buffer 4 and creates one image data in which pixels having different color spaces are mixed.

図7は、色空間が異なる画素が混在する1つの画像データを作成する際、画像処理装置Gが実行する処理の流れを示している。
図7に示すように、画像処理装置Gの集約処理部14は、バッファー4に保持されているCMYKの画像データとRGBの画像データを、それぞれ4×4画素単位で入力する(ステップS11)。1画素の画素値は8ビットのデータである。
FIG. 7 shows a flow of processing executed by the image processing apparatus G when creating one image data in which pixels having different color spaces are mixed.
As shown in FIG. 7, the aggregation processing unit 14 of the image processing apparatus G inputs the CMYK image data and the RGB image data held in the buffer 4 in units of 4 × 4 pixels (step S11). The pixel value of one pixel is 8-bit data.

集約処理部14は、CMYKの画像データとRGBの画像データを集約したときの各画像データの配置位置に応じて、CMYKの4×4画素とRGBの4×4画素のそれぞれから画素を抽出する。例えば、4×4画素のうち、ijが22,32,23,33の画素がRGBの画像データの配置位置にある場合、集約処理部14は、RGBの4×4画素の画素値プレーンから、ijが22,32,23,33の画素を抽出する。また、集約処理部14は、CMYKの4×4画素の画素値プレーンから、ijが00〜03、10〜13、20、21、30、31の画素を抽出する。   The aggregation processing unit 14 extracts pixels from each of the CMYK 4 × 4 pixels and the RGB 4 × 4 pixels according to the arrangement positions of the image data when the CMYK image data and the RGB image data are aggregated. . For example, out of 4 × 4 pixels, when the pixels having ij of 22, 32, 23, and 33 are in the arrangement positions of the RGB image data, the aggregation processing unit 14 uses the pixel value plane of 4 × 4 pixels of RGB, Pixels having ij of 22, 32, 23, and 33 are extracted. Further, the aggregation processing unit 14 extracts pixels having ij of 00 to 03, 10 to 13, 20, 21, 30, and 31 from the CMYK 4 × 4 pixel value plane.

集約処理部14は、抽出された各画素が属する色空間の色の画素値が、異なる色空間同士で混在する色毎の画素値プレーンを作成する(ステップS12)。このとき、集約処理部14が、異なる色空間のうち、色数が多い方の色空間の色の数だけ画素値プレーンを作成することが好ましい。これにより、異なる色空間同士の色の画素値を効率良く混在させることができる。CMYKとRGBの色空間の場合、集約処理部14は、色数が多いCMYKの4色に合わせて、図8に示すように4つの画素値プレーン301〜304を作成する。4つの画素値プレーン301〜304のうち、YとBが、MとGが、CとRが、それぞれ同一の画素値プレーンを共有し、残り1つをKが専有する。   The aggregation processing unit 14 creates a pixel value plane for each color in which pixel values of colors in the color space to which each extracted pixel belongs are mixed in different color spaces (step S12). At this time, it is preferable that the aggregation processing unit 14 creates pixel value planes by the number of colors in the color space having the larger number of colors among the different color spaces. Thereby, pixel values of colors in different color spaces can be mixed efficiently. In the case of CMYK and RGB color spaces, the aggregation processing unit 14 creates four pixel value planes 301 to 304 as shown in FIG. 8 according to the four colors of CMYK having a large number of colors. Of the four pixel value planes 301 to 304, Y and B share M and G, C and R share the same pixel value plane, and K occupies the other one.

図8は、4×4画素のうち、右下の2×2画素(ijが22,32,23,33の画素)がRGBの色空間に属し、それ以外がCMYKの色空間に属する画素値プレーンの例を示している。図8に示すように、YとBが共有するY/Gの画素値プレーン302は、右下2×2画素がBの画素値、その他がYの画素値を表す。同様に、MとGが共有するM/Gの画素値プレーン303は、右下2×2画素がGの画素値、その他がMの画素値を表す。CとRが共有するC/Rの画素値プレーン304は、右下2×2画素がRの画素値、その他がCの画素値を表す。Kの画素値プレーン301は混在させるRGBの色空間の色が無いため、右下2×2画素が空き領域であり、その他がKの画素値を表す。   FIG. 8 shows pixel values of 4 × 4 pixels in which the lower right 2 × 2 pixels (pixels having ij of 22, 32, 23, and 33) belong to the RGB color space and the other pixels belong to the CMYK color space. An example of a plane is shown. As shown in FIG. 8, in the Y / G pixel value plane 302 shared by Y and B, the lower right 2 × 2 pixels represent B pixel values, and the others represent Y pixel values. Similarly, in the M / G pixel value plane 303 shared by M and G, the lower right 2 × 2 pixels represent G pixel values, and the others represent M pixel values. In the C / R pixel value plane 304 shared by C and R, the lower right 2 × 2 pixel represents the R pixel value, and the others represent the C pixel value. Since the K pixel value plane 301 has no color in the RGB color space to be mixed, the lower right 2 × 2 pixels are vacant areas, and the others represent the K pixel values.

集約処理部14は、画素値プレーンの各画素がCMYKとRGBの何れの色空間に属するかを表す識別プレーンを作成する(ステップS13)。例えば、図8に示すように、集約処理部14は、画素値プレーンにおいてCMYKの色空間に属する画素に0のデータ、RGBの色空間に属する画素に1のデータを保持する識別プレーン400を作成する。この0、1の2値データにより、各画素の色空間がCMYKかRGBかを識別することができる。   The aggregation processing unit 14 creates an identification plane indicating which color space each pixel of the pixel value plane belongs to, CMYK or RGB (step S13). For example, as illustrated in FIG. 8, the aggregation processing unit 14 creates an identification plane 400 that holds 0 data for pixels belonging to the CMYK color space and 1 data for pixels belonging to the RGB color space in the pixel value plane. To do. The binary data of 0 and 1 can identify whether the color space of each pixel is CMYK or RGB.

集約処理部14は、識別プレーンを、図8に示すように、K、Y/B、M/G、C/Rの画素値プレーン301〜304とは別個に作成することもできるし、図9に示すように、8ビット分のKの画素値プレーン301のうち、最下位ビットのプレーンを、識別プレーン400に置き換えることもできる。置き換えにより、識別プレーン400の16ビット分だけ画像データのデータ量を削減できる。Kの色の画素値は最下位ビットのデータが欠落するが、8ビット中の最下位ビットであるので、画素値の再現性にほとんど影響しない。なお、最下位ビットのプレーンと置き換えるのであれば、Kに限らず、何れの色であってもよい。   The aggregation processing unit 14 can create the identification plane separately from the pixel value planes 301 to 304 of K, Y / B, M / G, and C / R as shown in FIG. As shown in FIG. 8, the least significant bit plane of the 8-bit K pixel value plane 301 can be replaced with the identification plane 400. By the replacement, the data amount of the image data can be reduced by 16 bits of the identification plane 400. The pixel value of the K color lacks the data of the least significant bit, but since it is the least significant bit of the 8 bits, it hardly affects the reproducibility of the pixel value. As long as the plane is replaced with the least significant bit plane, the color is not limited to K, and any color may be used.

全画素について、上記処理を終えていない場合(ステップS14;N)、ステップS11の処理に戻る。集約処理部14は、新たに4×4画素のCMYK、RGBの各画素値プレーンを入力し、ステップS11〜S13の処理を繰り返す。
全画素について上記処理を終えると(ステップS14;Y)、本処理が終了し、図10に示すように、CMYKの画像データの一部が、RGBの画像データに置き換えられ、CMYKとRGBの異なる色空間の画素が混在する画像データが得られる。得られた画像データは、集約処理部14から符号化部12に出力される。
When the above process has not been completed for all pixels (step S14; N), the process returns to step S11. The aggregation processing unit 14 newly inputs 4 × 4 pixel CMYK and RGB pixel value planes, and repeats the processes of steps S11 to S13.
When the above process is completed for all pixels (step S14; Y), this process ends, and as shown in FIG. 10, a part of the CMYK image data is replaced with RGB image data, and the CMYK and RGB are different. Image data in which pixels in the color space are mixed is obtained. The obtained image data is output from the aggregation processing unit 14 to the encoding unit 12.

〔符号化〕
画像処理装置Gは、異なる色空間に属する画素が混在する画像データを、単一の色空間のみからなる画像データと同様に、BTC方式により、符号化、復号化することができる。
図11は、異なる色空間に属する画素が混在する画像データの符号化時に画像処理装置Gが実行する処理の流れを示している。
〔Coding〕
The image processing apparatus G can encode and decode image data in which pixels belonging to different color spaces are mixed by the BTC method in the same manner as image data consisting of only a single color space.
FIG. 11 shows a flow of processing executed by the image processing apparatus G when encoding image data in which pixels belonging to different color spaces are mixed.

図11に示すように、画像処理装置Gの符号化部12は、符号化する画像データを4×4画素単位で入力する(ステップS21)。画像データは、図8に示すように、識別プレーン400と各色の画素値プレーン301〜304からなる。符号化部12はCMYK、RGBの何れかの色に注目し、識別プレーンが表す色空間によって、注目色の画素値プレーンの4×4画素の中から、注目色の画素を特定する。符号化部12は特定した注目色の画素の階調、つまり最大値Maxと最小値minを求める(ステップS22)。
例えば、注目色がBである場合、符号化部12は、識別プレーンによってY/Bの画素値プレーン中のBの画素は右下2×2画素であることを特定する。符号化部12は、特定された2×2画素の画素値の最大値Maxと最小値minを求める。
As shown in FIG. 11, the encoding unit 12 of the image processing apparatus G inputs image data to be encoded in units of 4 × 4 pixels (step S21). As shown in FIG. 8, the image data includes an identification plane 400 and pixel value planes 301 to 304 for each color. The encoding unit 12 pays attention to one of CMYK and RGB colors, and identifies a pixel of the target color from 4 × 4 pixels of the pixel value plane of the target color by the color space represented by the identification plane. The encoding unit 12 obtains the gradation of the pixel of the specified target color, that is, the maximum value Max and the minimum value min (step S22).
For example, when the target color is B, the encoding unit 12 specifies that the B pixel in the Y / B pixel value plane is the lower right 2 × 2 pixels by the identification plane. The encoding unit 12 obtains the maximum value Max and the minimum value min of the specified 2 × 2 pixel values.

符号化部12は、求めた注目色の最大値Maxと最小値minから閾値THnを算出する(ステップS23)。
符号化部12は、閾値THnによって、注目色の画素値Pijが注目色の最大値Maxと最小値minからなる階調のどの区分に属するかを判断する。符号化部12は、属する区分に応じて画素値Pijを符号化し、その符号値φijを表す符号値プレーンを作成する(ステップS24)。
また、符号化部12は、注目色の画素値プレーン中の注目色の階調を表す階調プレーンを作成する(ステップS25)。
The encoding unit 12 calculates a threshold value THn from the obtained maximum value Max and minimum value min of the target color (step S23).
The encoding unit 12 determines, based on the threshold value THn, to which division of the gradation composed of the maximum value Max and the minimum value min of the target color the pixel value Pij of the target color belongs. The encoding unit 12 encodes the pixel value Pij according to the section to which it belongs, and creates a code value plane representing the code value φij (step S24).
Further, the encoding unit 12 creates a gradation plane representing the gradation of the target color in the pixel value plane of the target color (step S25).

その後、全色について符号化を終えていなければ(ステップS26;N)、符号化部12は、注目色を未処理の色に切り替え(ステップS27)、切り替えた注目色について、ステップS22〜S25の処理を繰り返す。
全ての色について符号化が終了した場合(ステップS26;Y)、符号化部12は、4×4画素の符号値プレーン、階調プレーン、画素値プレーンとともに入力された識別プレーンを、符号データとして画像メモリー6に書き込む(ステップS28)。
After that, if encoding has not been completed for all colors (step S26; N), the encoding unit 12 switches the target color to an unprocessed color (step S27), and steps S22 to S25 for the switched target color. Repeat the process.
When encoding is completed for all colors (step S26; Y), the encoding unit 12 uses, as code data, an identification plane that is input together with a 4 × 4 pixel code value plane, a gradation plane, and a pixel value plane. Writing to the image memory 6 (step S28).

図12は、4×4画素の符号データの例を示している。
図12に示すように、符号データは、0ビット目から3ビット目まで階層化された20プレーンからなる。1〜3ビット目にKの符号値プレーン311、YとBの符号値が混在するY/Bの符号値プレーン312、MとGの符号値が混在するM/Gの符号値プレーン313、CとRの符号値が混在するC/Rの符号値プレーン314が位置している。また、各色の符号値プレーン311〜314の0ビット目には、CMYKの各色の階調プレーン321〜324が位置している。識別プレーン400は3ビット目に位置し、その下にRGBの各色の階調プレーン331〜333が位置している。
FIG. 12 shows an example of 4 × 4 pixel code data.
As shown in FIG. 12, the code data consists of 20 planes hierarchized from the 0th bit to the 3rd bit. 1st to 3rd bits, a K code value plane 311, a Y / B code value plane 312 in which Y and B code values are mixed, an M / G code value plane 313 in which M and G code values are mixed, C The C / R code value plane 314 in which the code values of R and R are mixed is located. In addition, gradation planes 321 to 324 for each color of CMYK are located at the 0th bit of the code value planes 311 to 314 for each color. The identification plane 400 is located at the third bit, and the gradation planes 331 to 333 of each color of RGB are located below it.

その後、画像データの全画素について符号化を終えていない場合(ステップS29;N)、ステップS21に戻り、符号化部12は次の4×4画素を入力して、ステップS22〜S28の処理を繰り返す。全画素の符号化を終えると(ステップS29;Y)、本処理が終了する。
全画素について画像メモリー6に書き込まれた符号データは、保存制御部7aによって記憶装置7に保存される。
After that, when encoding has not been completed for all the pixels of the image data (step S29; N), the process returns to step S21, and the encoding unit 12 inputs the next 4 × 4 pixels and performs the processing of steps S22 to S28. repeat. When encoding of all the pixels is completed (step S29; Y), this process ends.
Code data written to the image memory 6 for all pixels is stored in the storage device 7 by the storage control unit 7a.

〔復号化〕
図13は、異なる色空間からなる画像データの符号データを復号化する際に画像処理装置Gが実行する処理の流れを示している。
図13に示すように、画像処理装置Gの復号化部13は、符号データを4×4画素単位で入力する(ステップS31)。復号化部13は、CMYK又はRGBの色空間の何れかの色に注目し、符号データから注目色の階調プレーンを取得する。復号化部13は、取得した階調プレーンから注目色の階調を表す最大値Maxと最小値minのデータを得る(ステップS32)。
〔Decryption〕
FIG. 13 shows a flow of processing executed by the image processing apparatus G when decoding code data of image data having different color spaces.
As illustrated in FIG. 13, the decoding unit 13 of the image processing apparatus G inputs code data in units of 4 × 4 pixels (step S31). The decoding unit 13 pays attention to any color in the color space of CMYK or RGB, and acquires the gradation plane of the target color from the code data. The decoding unit 13 obtains data of the maximum value Max and the minimum value min representing the gradation of the target color from the acquired gradation plane (step S32).

復号化部13は、識別プレーンが表す色空間によって、注目色の符号値プレーン中の注目色の符号値φijを特定する。符号化部12は、注目色の最大値Maxと最小値minを用いて、特定された注目色の符号値φijを復号化し、画素値Dijを得る。復号化部13は、得られた画素値Dijを表す画素値プレーンを作成する(ステップS33)。各色の画素値プレーンは、図9に示す画素値プレーンと同様に、4×4画素の画素値Dijのデータを、1ビットずつ保持する8つのプレーンからなる。   The decoding unit 13 specifies the code value φij of the target color in the code value plane of the target color based on the color space represented by the identification plane. The encoding unit 12 decodes the identified code value φij of the target color using the maximum value Max and the minimum value min of the target color to obtain a pixel value Dij. The decoding unit 13 creates a pixel value plane representing the obtained pixel value Dij (step S33). Similarly to the pixel value plane shown in FIG. 9, the pixel value plane of each color is composed of eight planes that hold the data of the pixel value Dij of 4 × 4 pixels one bit at a time.

その後、全色について復号化を終えていなければ(ステップS34;N)、復号化部13は、注目する色を未処理の色に切り替え(ステップS35)、切り替えた注目色について、ステップS32〜S33の処理を繰り返す。
4×4画素で使用されている全ての色について復号化を終えた場合(ステップS34;Y)、復号化部13は、画素値Dijからなる画素値プレーン、識別プレーンを、画像データとしてバッファー4に書き込む(ステップS36)。
Thereafter, if the decoding has not been completed for all colors (step S34; N), the decoding unit 13 switches the target color to an unprocessed color (step S35), and steps S32 to S33 for the switched target color. Repeat the process.
When decoding has been completed for all colors used in 4 × 4 pixels (step S34; Y), the decoding unit 13 uses the pixel value plane and identification plane made up of the pixel values Dij as image data in the buffer 4 (Step S36).

4×4画素の全ての色について復号化を終えたが、符号データの全画素について復号化が終了していない場合(ステップS37;N)、ステップS31に戻り、復号化部13は次の4×4画素を入力して、ステップS31〜S36の処理を繰り返す。全画素の復号化を終えると(ステップS37;Y)、本処理が終了する。   When decoding has been completed for all the colors of 4 × 4 pixels, but decoding has not been completed for all the pixels of the encoded data (step S37; N), the process returns to step S31, and the decoding unit 13 X4 pixels are input, and the processing of steps S31 to S36 is repeated. When the decoding of all the pixels is completed (step S37; Y), this process ends.

復号化によりバッファー4に書き込まれた画像データは、色変換部11によってRGBの画素値を持つ画素のみ色変換処理され、プリント部8に出力される。   The image data written in the buffer 4 by decoding is subjected to color conversion processing only for pixels having RGB pixel values by the color conversion unit 11 and output to the printing unit 8.

以上のように、画像処理装置Gは、画像データを、BTC方式により符号化する符号化部12と、符号化部12により符号化された画像データを、BTC方式により復号化する復号化部13と、色空間が異なる画像データを集約したときの配置位置に応じて、色空間が異なる画像データのそれぞれから画素を抽出し、抽出された各画素が属する色空間の色の画素値が、異なる色空間同士で混在する色毎の画素値プレーンを作成し、当該画素値プレーンにおいて各画素が属する色空間を表す識別プレーンを作成する集約処理部14と、を備える。符号化部12は、画素値プレーン中の各色の階調を表す階調プレーンを作成し、画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって当該画素値を符号化し、その符号値を表す符号値プレーンを作成し、階調プレーン、符号値プレーン、識別プレーンを符号データとして出力する。復号化部13は、識別プレーンが表す色空間によって、符号値プレーンの各符号値の色を特定し、特定された各色の符号値を、階調プレーンが表す各色の階調を用いて復号化する。   As described above, the image processing apparatus G includes an encoding unit 12 that encodes image data using the BTC method, and a decoding unit 13 that decodes image data encoded using the encoding unit 12 using the BTC method. In addition, pixels are extracted from each of the image data with different color spaces according to the arrangement position when the image data with different color spaces are aggregated, and the pixel values of the colors of the color spaces to which the extracted pixels belong are different. An aggregation processing unit for creating a pixel value plane for each color mixed in the color spaces and creating an identification plane representing the color space to which each pixel belongs in the pixel value plane. The encoding unit 12 creates a gradation plane that represents the gradation of each color in the pixel value plane, and determines the pixel value according to which division of the gradation of each color the pixel value of each color in the pixel value plane belongs to. Encoding is performed to generate a code value plane representing the code value, and a gradation plane, a code value plane, and an identification plane are output as code data. The decoding unit 13 identifies the color of each code value of the code value plane using the color space represented by the identification plane, and decodes the code value of each identified color using the gradation of each color represented by the gradation plane. To do.

これにより、画像データの各画素が属する色空間によらず、同じ方式で符号化、復号化することができる。色空間毎に異なる方式の符号化又は復号化の処理回路を設ける必要が無く、ハードウェア規模の拡大を回避できる。
符号化及び復号化はBTC方式によるので、符号化及び復号化を経ても色空間が異なる画素の位置と画素値の関係を維持することができ、画像データの再現性に優れる。
また、色空間が異なる画像データを集約して1つの画像データとして符号化することにより、色空間が異なる画像データを個別に符号化する場合より、符号データのデータ量を削減することができ、メモリー資源の有効活用ができる。符号データの記憶領域の割り当ても無駄が少なく、個別に符号化された符号データのアドレス管理も不要であるので、符号データの保存や読出しが容易である。
Thus, encoding and decoding can be performed in the same manner regardless of the color space to which each pixel of the image data belongs. There is no need to provide a different encoding or decoding processing circuit for each color space, and an increase in hardware scale can be avoided.
Since the encoding and decoding are based on the BTC method, the relationship between the pixel position and the pixel value in different color spaces can be maintained even after the encoding and decoding, and the reproducibility of the image data is excellent.
Also, by collecting image data with different color spaces and encoding them as one image data, it is possible to reduce the amount of code data compared to the case of individually encoding image data with different color spaces, Effective use of memory resources. The allocation of the code data storage area is also less wasteful, and the address management of the individually encoded code data is unnecessary, so that the code data can be easily stored and read.

上記実施の形態は本発明の好適な一例であり、これに限定されない。本発明の主旨を逸脱しない範囲で適宜変更可能である。
例えば、上記画像処理装置GをPC30にも搭載し、MFP10から送信された符号データを、PC30の画像処理装置Gにおいて復号してもよい。
The above embodiment is a preferred example of the present invention, and the present invention is not limited to this. Modifications can be made as appropriate without departing from the spirit of the present invention.
For example, the image processing apparatus G may be mounted on the PC 30 and the code data transmitted from the MFP 10 may be decoded by the image processing apparatus G of the PC 30.

また、色空間がRGBの画像データとCMYKの画像データを1つの画像データとして混在させる例を示したが、画像処理装置Gによれば、L、sRGB等の他の色空間についても、同様に1つの画像データに混在させ、1つの方式で符号化、復号化を行うことができる。 Further, although an example in which image data of RGB color space and CMYK image data are mixed as one image data has been shown, according to the image processing apparatus G, other color spaces such as L * a * b * , sRGB, etc. Similarly, it can be mixed in one image data and can be encoded and decoded by one method.

10 MFP
1 制御部
2 スキャナー
3 読取処理部
4 バッファー
5 通信部
6 画像メモリー
7 記憶装置
7a 保存制御部
8 プリント部
20 プリントコントローラー
30 PC
G 画像処理装置
11 色変換部
12 符号化部
13 復号化部
14 集約処理部
10 MFP
DESCRIPTION OF SYMBOLS 1 Control part 2 Scanner 3 Reading process part 4 Buffer 5 Communication part 6 Image memory 7 Storage device 7a Storage control part 8 Print part 20 Print controller 30 PC
G Image processing apparatus 11 Color conversion unit 12 Encoding unit 13 Decoding unit 14 Aggregation processing unit

Claims (7)

画像データを、BTC方式により符号化する符号化部と、
前記符号化部により符号化された画像データを、BTC方式により復号化する復号化部と、
色空間が異なる画像データを集約したときの配置位置に応じて、色空間が異なる画像データのそれぞれから画素を抽出し、抽出された各画素が属する色空間の色の画素値が、異なる色空間同士で混在する色毎の画素値プレーンを作成し、当該画素値プレーンにおいて各画素が属する色空間を表す識別プレーンを作成する集約処理部と、を備え、
前記符号化部は、
前記画素値プレーン中の各色の階調を表す階調プレーンを作成し、
前記画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって当該画素値を符号化し、その符号値を表す符号値プレーンを作成し、
前記階調プレーン、前記符号値プレーン、前記識別プレーンを符号データとして出力し、
前記復号化部は、
前記識別プレーンが表す色空間によって、前記符号値プレーンの各色の符号値を特定し、特定された各色の符号値を、前記階調プレーンが表す各色の階調を用いて復号化する画像処理装置。
An encoding unit that encodes image data by the BTC method;
A decoding unit that decodes the image data encoded by the encoding unit by a BTC method;
According to the arrangement position when the image data with different color spaces are aggregated, pixels are extracted from each of the image data with different color spaces, and the pixel values of the colors of the color spaces to which the extracted pixels belong are different color spaces An aggregation processing unit that creates a pixel value plane for each color mixed together and creates an identification plane that represents a color space to which each pixel belongs in the pixel value plane;
The encoding unit includes:
Create a gradation plane representing the gradation of each color in the pixel value plane,
The pixel value of each color in the pixel value plane is encoded according to which section of the gradation of each color belongs to create the code value plane representing the code value,
The gradation plane, the code value plane, and the identification plane are output as code data,
The decoding unit
An image processing device that identifies the code value of each color of the code value plane by the color space represented by the identification plane and decodes the code value of each identified color using the gradation of each color represented by the gradation plane .
前記集約処理部は、異なる色空間のうち、色数が多い方の色空間の色の数だけ画素値プレーンを作成する請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the aggregation processing unit creates pixel value planes by the number of colors in a color space having a larger number of colors among different color spaces. 前記画素値プレーンは、画素値のデータのビット数分のプレーンからなり、1プレーンが1ビットのデータを表し、
前記集約処理部は、前記識別プレーンを、何れかの色の画素値プレーンの最下位ビットのプレーンと置き換える請求項1又は2に記載の画像処理装置。
The pixel value plane is composed of planes corresponding to the number of bits of pixel value data, and one plane represents 1-bit data.
The image processing apparatus according to claim 1, wherein the aggregation processing unit replaces the identification plane with a least significant bit plane of a pixel value plane of any color.
画像データを、BTC方式により符号化する符号化部と、
色空間が異なる画像データを集約したときの配置位置に応じて、色空間が異なる画像データのそれぞれから画素を抽出し、各画素が属する色空間の色の画素値を、異なる色空間同士で混在させた色毎の画素値プレーンを作成し、当該画素値プレーンにおいて各画素が属する色空間を表す識別プレーンを作成する集約処理部と、を備え、
前記符号化部は、
前記画素値プレーン中の各色の階調を表す階調プレーンを作成し、
前記画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって当該画素値を符号化し、その符号値を表す符号値プレーンを作成し、
前記階調プレーン、前記符号値プレーン、前記識別プレーンを符号データとして出力する画像処理装置。
An encoding unit that encodes image data by the BTC method;
Pixels are extracted from each of the image data with different color spaces according to the arrangement position when the image data with different color spaces are aggregated, and the pixel values of the colors of the color space to which each pixel belongs are mixed in different color spaces An aggregation processing unit that creates a pixel value plane for each color and creates an identification plane representing a color space to which each pixel belongs in the pixel value plane,
The encoding unit includes:
Create a gradation plane representing the gradation of each color in the pixel value plane,
The pixel value of each color in the pixel value plane is encoded according to which section of the gradation of each color belongs to create the code value plane representing the code value,
An image processing apparatus that outputs the gradation plane, the code value plane, and the identification plane as code data.
異なる色空間の色の画素値が混在する画素値プレーン中の各色の階調を表す階調プレーン、画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって符号化された画素値の符号値を表す符号値プレーン、各画素が属する色空間を表す識別プレーンからなる符号データを、BTC方式により復号化する復号化部を備え、
前記復号化部は、前記識別プレーンが表す色空間によって、前記符号値プレーンの各色の符号値を特定し、特定された各色の符号値を、前記階調プレーンが表す各色の階調を用いて復号化する画像処理装置。
A gradation plane that represents the gradation of each color in a pixel value plane in which pixel values of colors in different color spaces are mixed, and encoding according to which division of the gradation of each color the pixel value of each color in the pixel value plane belongs to A decoding unit that decodes code data composed of a code value plane representing a code value of the pixel value obtained and an identification plane representing a color space to which each pixel belongs;
The decoding unit identifies a code value of each color of the code value plane by using a color space represented by the identification plane, and uses the gradation of each color represented by the gradation plane by using the code value of each identified color. An image processing apparatus for decoding.
色空間が異なる画像データを集約したときの配置位置に応じて、色空間が異なる画像データのそれぞれから画素を抽出し、各画素が属する色空間の色の画素値を、異なる色空間同士で混在させた色毎の画素値プレーンを作成する工程と、
前記画素値プレーンにおいて各画素が属する色空間を表す識別プレーンを作成する工程と、
前記画素値プレーン中の各色の階調を表す階調プレーンを作成する工程と、
前記画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって当該画素値を符号化し、その符号値を表す符号値プレーンを作成する工程と、
前記階調プレーン、前記符号値プレーン、前記識別プレーンを符号データとして出力する工程と、
を含む符号化方法。
Pixels are extracted from each of the image data with different color spaces according to the arrangement position when the image data with different color spaces are aggregated, and the pixel values of the colors of the color space to which each pixel belongs are mixed in different color spaces Creating a pixel value plane for each color,
Creating an identification plane representing a color space to which each pixel belongs in the pixel value plane;
Creating a gradation plane representing the gradation of each color in the pixel value plane;
Encoding the pixel value according to which section of the gradation of each color the pixel value of each color in the pixel value plane, and creating a code value plane representing the code value;
Outputting the gradation plane, the code value plane, and the identification plane as code data;
An encoding method including:
異なる色空間の色の画素値が混在する画素値プレーン中の各色の階調を表す階調プレーン、当該画素値プレーン中の各色の画素値が、各色の階調のどの区分に属するかによって符号化された符号値を表す符号値プレーン、各画素が属する色空間を表す識別プレーンからなる符号データを入力する工程と、
前記識別プレーンが表す色空間によって、前記符号値プレーンの各色の符号値を特定し、特定された各色の符号値を、前記階調プレーンが表す各色の階調を用いて復号化する工程と、
を含む復号化方法。
A gradation plane that represents the gradation of each color in a pixel value plane in which pixel values of colors in different color spaces are mixed, and a code depending on which division of the gradation of each color the pixel value of each color in the pixel value plane belongs to A code value plane consisting of a code value plane representing a coded code value and an identification plane representing a color space to which each pixel belongs; and
Identifying the code value of each color of the code value plane by the color space represented by the identification plane, and decoding the code value of each identified color using the gradation of each color represented by the gradation plane;
A decoding method including:
JP2012001854A 2012-01-10 2012-01-10 Image processing device, coding method and decoding method Pending JP2013143609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012001854A JP2013143609A (en) 2012-01-10 2012-01-10 Image processing device, coding method and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012001854A JP2013143609A (en) 2012-01-10 2012-01-10 Image processing device, coding method and decoding method

Publications (1)

Publication Number Publication Date
JP2013143609A true JP2013143609A (en) 2013-07-22

Family

ID=49039957

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012001854A Pending JP2013143609A (en) 2012-01-10 2012-01-10 Image processing device, coding method and decoding method

Country Status (1)

Country Link
JP (1) JP2013143609A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055722A (en) * 2023-03-06 2023-05-02 山东梁山酿酒总厂有限公司 Data storage method for automatic white spirit production system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055722A (en) * 2023-03-06 2023-05-02 山东梁山酿酒总厂有限公司 Data storage method for automatic white spirit production system

Similar Documents

Publication Publication Date Title
KR101490215B1 (en) Image processing apparatus and processing method therefor
JP5393574B2 (en) Image processing apparatus, image processing method, and program
US8265401B2 (en) Image compressing apparatus, image compressing method, image decompressing apparatus, image decompressing method, image forming apparatus and recording medium
US8849021B2 (en) Image processing apparatus, method, and storage medium for high speed compression processing
CN1756296B (en) Image processing apparatus and image processing method
US8452083B2 (en) Image processing apparatus, image processing method, and computer-readable medium
JP3843581B2 (en) Image encoding device, image decoding device, image processing device, image encoding method, image decoding method, and image processing method
US20080037882A1 (en) Image processing apparatus and control method thereof
JP4152724B2 (en) Single pass fit guaranteed data compression method using rate feedback
US8780414B2 (en) Image processing apparatus, image processing method, and computer-readable medium for image data compression
GB2345401A (en) Compression of digital images comprising background pixels
JP2006262436A (en) Image processing apparatus
KR20110016408A (en) Data processing apparatus and data processing method
JP2004112695A (en) Image processing apparatus and processing method thereof
JP2013143609A (en) Image processing device, coding method and decoding method
JP2010118760A (en) Image processing apparatus
US8494261B2 (en) Image processing apparatus, image processing method, and computer-readable medium
JP3595601B2 (en) Image communication method and apparatus
JP4656457B2 (en) Image processing system
JP6044347B2 (en) Image processing apparatus, encoding method, and decoding method
JP4195624B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, program, and storage medium
JP4584805B2 (en) Image processing apparatus, image processing method, and image processing program
JP2010162802A (en) Image processing apparatus, image processing method and computer program
JP3630828B2 (en) Image forming apparatus and image data storage method
JP2005039316A (en) Image coding apparatus, image processing apparatus, program, and storage medium

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20130416