JP2005117148A - Color image processor - Google Patents

Color image processor Download PDF

Info

Publication number
JP2005117148A
JP2005117148A JP2003345736A JP2003345736A JP2005117148A JP 2005117148 A JP2005117148 A JP 2005117148A JP 2003345736 A JP2003345736 A JP 2003345736A JP 2003345736 A JP2003345736 A JP 2003345736A JP 2005117148 A JP2005117148 A JP 2005117148A
Authority
JP
Japan
Prior art keywords
color
image data
color image
color space
pixel data
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
JP2003345736A
Other languages
Japanese (ja)
Other versions
JP3867857B2 (en
Inventor
Tetsuji Yamaguchi
哲治 山口
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2003345736A priority Critical patent/JP3867857B2/en
Publication of JP2005117148A publication Critical patent/JP2005117148A/en
Application granted granted Critical
Publication of JP3867857B2 publication Critical patent/JP3867857B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a color image processor for adding no pixel data in a color different from a prescribed color to color image data of an original even when the pixel data are added to the color image data of the original subjected to color space conversion in the case of adding the pixel data in the prescribed color to the color image data read from the original for executing compression coding. <P>SOLUTION: In the case of applying the compression coding by the JPEG system to color image data read from the original expressed in a first color space or the color image data expressed in a second color space resulting from applying the color space conversion to the color image data in the first color space by each block in units of a prescribed number of pixels, pixel data representing white color are added to the pixel data a block that is less than the block in units of a prescribed number of pixels to form the block in the prescribed number of pixels. Color specification values of the pixel data representing the white color are respectively stored by each color space, the color specification value corresponding to the color space of the color image data subjected to the compression coding is read and the pixel data with the color specification value are added. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、カラー画像処理装置に関し、詳しくは、読取った原稿のカラー画像データを圧縮符号化するカラー画像処理装置に関するものである。   The present invention relates to a color image processing apparatus, and more particularly to a color image processing apparatus that compresses and encodes color image data of a read original.

読取った原稿のカラー画像データのサイズがファクシミリ送信原稿の設定サイズよりも小さい場合に、前記原稿のカラー画像データの周辺部分に白を表す画素データ(白データ)を付加することにより前記設定サイズと同サイズのファクシミリ送信原稿を作成し、該ファクシミリ送信原稿のカラー画像領域をJPEG方式で圧縮符号化し、余白領域をJPEG方式とは異なる方式で圧縮符号化してファクシミリ送信するカラーファクシミリ装置がある(例えば、特許文献1参照。)。   When the color image data size of the read original is smaller than the set size of the facsimile transmission original, pixel data (white data) representing white is added to the peripheral portion of the color image data of the original to obtain the set size. There is a color facsimile apparatus that creates a facsimile transmission original of the same size, compresses and encodes a color image area of the facsimile transmission original by the JPEG system, and compresses and encodes a blank area by a system different from the JPEG system (for example, a facsimile transmission). , See Patent Document 1).

このカラーファクシミリ装置は、具体的には、読取ったRGB表色系のカラー画像データをL*a*b*表色系のカラー画像データに色空間変換し、このL*a*b*表色系のカラー画像データの周辺部分にL*a*b*=100、0、0の表色値で表される白データを付加してファクシミリ送信原稿を作成する。そして、作成されたファクシミリ送信原稿を8×8画素のブロックに分割し、ブロック内の画素データ間の色差、明度の値のばらつきが既定値よりも大きいブロックはカラー画像領域であると判断してJPEG方式で圧縮符号化し、既定値以下であるブロックは余白領域であると判断してJPEG方式とは異なる方式で圧縮符号化する処理を各ブロック毎に行ってファクシミリ送信原稿のカラー画像データを圧縮符号化してファクシミリ送信している。   Specifically, this color facsimile machine converts the read RGB color system color image data to L * a * b * color system color image data, and converts this L * a * b * color system. A facsimile transmission original is created by adding white data represented by color values of L * a * b * = 100, 0, 0 to the peripheral portion of the system color image data. Then, the prepared facsimile transmission document is divided into 8 × 8 pixel blocks, and a block in which the variation in color difference and brightness value between pixel data in the block is larger than a predetermined value is determined to be a color image area. JPEG format compression coding, blocks below the default value are determined to be blank areas, and compression coding is performed for each block using a scheme different from the JPEG format to compress color image data of facsimile transmission originals. Encoded and sent by facsimile.

したがって、余白領域と判断したブロックについてはJPEG方式とは異なる方式で圧縮符号化することにより、JPEG方式よりも高速で且つ簡単に圧縮符号化でき、ファクシミリ送信原稿のカラー画像データ画像全体の圧縮符号化にかかる時間を短縮することができる。
特開2001−177729号公報
Therefore, by compressing and encoding a block determined to be a blank area using a method different from the JPEG method, it can be compressed and encoded at a speed higher than that of the JPEG method. The time required for conversion can be shortened.
JP 2001-177729 A

しかしながら、上記のカラーファクシミリ装置において、読取ったRGB表色系のカラー画像データをL*a*b*表色系に代えて例えばYCrCb表色系のカラー画像データに変換して圧縮符号化する場合に、カラー画像領域と判断したブロックに上記と同じ100、0、0の表色値で表されるYCrCb表色系の画素データを付加すると、L*a*b*表色系とYCrCb表色系とでは白を表す表色値が異なるため、JPEG方式で圧縮符号化したファクシミリ送信原稿のカラー画像データを伸張してプリントした場合など、画素データを付加した部分に不要な画像が出現してしまうという問題点がある。   However, in the above-described color facsimile apparatus, the read RGB color system color image data is converted into, for example, YCrCb color system color image data instead of the L * a * b * color system, and compression encoded. If pixel data of the YCrCb color system represented by the same color values of 100, 0, 0 as above are added to the block determined to be the color image area, the L * a * b * color system and the YCrCb color system are added. Since the color value representing white differs from the system, an unnecessary image appears in the part to which pixel data is added, such as when the color image data of a facsimile transmission original compressed and encoded by the JPEG method is expanded and printed. There is a problem that.

本発明は、かかる課題に鑑みてなされたものであり、読取った原稿のカラー画像データに所定色の画素データを付加して圧縮符号化する場合に、色空間変換した原稿のカラー画像データに画素データを付加したとしても所定色と異なる色の画素データが付加されることのないカラー画像処理装置を提供することを目的とする。   The present invention has been made in view of the above problems, and in the case where pixel data of a predetermined color is added to color image data of a read original and compression encoding is performed, pixels are added to the color image data of the original after color space conversion. An object of the present invention is to provide a color image processing apparatus in which pixel data of a color different from a predetermined color is not added even if data is added.

請求項1記載のカラー画像処理装置は、原稿の画像を読取って第1の色空間で表されるカラー画像データを出力する画像読取出力手段と、該画像読取出力手段から出力された第1の色空間で表されるカラー画像データを第2の色空間で表されるカラー画像データに色空間変換する色空間変換手段と、所定色の画素データの表色値を前記第1の色空間及び前記第2の色空間の各色空間毎に記憶する記憶手段と、前記画像読取出力手段から出力された第1の色空間で表されるカラー画像データ、又は前記色空間変換手段により色空間変換された第2の色空間で表されるカラー画像データを主走査方向及び副走査方向に順次所定画素数単位のブロックに分割する分割手段と、該分割手段により分割されるカラー画像データの一側縁部又は下縁部の画素データが前記所定画素数単位のブロックに満たない場合に、当該カラー画像データの色空間に対応する表色値を前記記憶手段から読み出し、該表色値によって表される所定色の画素データを付加することにより前記所定画素数単位のブロックを形成して、各ブロック毎にカラー画像データの圧縮符号化手段へ入力する付加手段とを備えることを特徴としている。   According to a first aspect of the present invention, there is provided a color image processing apparatus which reads an image of an original and outputs color image data represented in a first color space, and a first output from the image reading / outputting means. Color space conversion means for color space converting color image data expressed in a color space into color image data expressed in a second color space; and color values of pixel data of a predetermined color as the first color space and Storage means for storing each color space of the second color space, color image data represented by the first color space output from the image reading output means, or color space conversion by the color space conversion means. A dividing means for sequentially dividing the color image data represented by the second color space into blocks each having a predetermined number of pixels in the main scanning direction and the sub-scanning direction, and one side edge of the color image data divided by the dividing means Part or lower edge drawing When the data is less than the block of the predetermined number of pixels, the color value corresponding to the color space of the color image data is read from the storage means and the pixel data of the predetermined color represented by the color value is added. In this manner, the image forming apparatus includes an adding unit that forms a block of the predetermined number of pixels and inputs the block to each color image data compression encoding unit.

請求項2記載のカラー画像処理装置は、請求項1に記載のカラー画像処理装置において、前記記憶手段は、所定の1色を表す画素データの表色値を前記第1の色空間及び前記第2の色空間の各色空間毎に記憶しており、前記付加手段により付加される画素データは、全て前記所定の1色を表す画素データの表色値で表されたものであることを特徴としている。   The color image processing apparatus according to claim 2 is the color image processing apparatus according to claim 1, wherein the storage unit uses a color value of pixel data representing a predetermined color as the first color space and the first color space. 2 is stored for each color space, and the pixel data added by the adding means are all expressed by the color values of the pixel data representing the predetermined one color. Yes.

請求項3記載のカラー画像処理装置は、請求項2に記載のカラー画像処理装置において、前記圧縮符号化手段は、前記所定画素数単位のカラー画像データを各ブロック毎にJPEG方式により圧縮符号化するものであり、前記記憶手段に記憶されている所定の1色を表す画素データの表色値は、白色を表したものであることを特徴としている。   The color image processing apparatus according to claim 3, wherein the compression encoding unit compresses and encodes the color image data in units of the predetermined number of pixels by a JPEG method for each block. The color value of the pixel data representing one predetermined color stored in the storage means represents white.

請求項1に記載のカラー画像処理装置によれば、所定画素数単位のブロックに満たないカラー画像データの画素データに所定色の画素データを付加して圧縮符号化する場合に、そのカラー画像データの色空間に対応した表色値で表される画素データが付加されるので、色空間に関わらず同じ表色値の画素データを付加して圧縮符号化した場合のように所定色と異なる色の画素データが付加されるのを防止することができる。   According to the color image processing apparatus of claim 1, when compression coding is performed by adding pixel data of a predetermined color to pixel data of color image data that is less than a block of a predetermined number of pixels, the color image data Since pixel data represented by the color values corresponding to the color space is added, a color different from the predetermined color as in the case of compression coding by adding pixel data of the same color value regardless of the color space Can be prevented from being added.

請求項2に記載のカラー画像処理装置によれば、所定画素数単位のブロックに満たないカラー画像データの一側縁部又は下縁部の画素データには全て同じ表色値で表される画素データが付加されるので、画素データを付加する処理を容易に行うことができる。   According to the color image processing apparatus of claim 2, pixels represented by the same color value in the pixel data of one side edge portion or lower edge portion of the color image data which is less than a block of a predetermined number of pixels. Since data is added, the process of adding pixel data can be easily performed.

請求項3に記載のカラー画像処理装置によれば、所定画素数単位のブロックに満たないカラー画像データの一側縁部又は下縁部の画素データには白色を表す画素データが付加されるので、画素データが付加されたカラー画像データを圧縮符号化する際の圧縮率を上げることができる。   According to the color image processing apparatus of the third aspect, the pixel data representing white is added to the pixel data of one side edge or the lower edge of the color image data that is less than the block of the predetermined number of pixels. The compression rate when color image data to which pixel data is added is compression-encoded can be increased.

以下、本発明の実施の形態に係るカラー画像処理装置について図面に基づき説明する。図1に示すように、カラー画像処理装置1は、制御部(MPU:Microprocessing Unit)2、原稿読取部3、画像処理部4、色空間変換部5、ブロック化回路6、JPEG(Joint Photographic Experts Group)エンコーダ7、画像メモリ8、JPEGデコーダ9、記録部10、表示部11、操作部12、ROM(Read Only Memory)13、及びRAM(Random Access Memory)14を備えたものであって、各部2乃至14はバス15によって通信可能に接続されている。   A color image processing apparatus according to an embodiment of the present invention will be described below with reference to the drawings. As shown in FIG. 1, a color image processing apparatus 1 includes a control unit (MPU: Microprocessing Unit) 2, a document reading unit 3, an image processing unit 4, a color space conversion unit 5, a blocking circuit 6, a JPEG (Joint Photographic Experts). Group) encoder 7, image memory 8, JPEG decoder 9, recording unit 10, display unit 11, operation unit 12, ROM (Read Only Memory) 13, and RAM (Random Access Memory) 14. 2 to 14 are communicably connected via a bus 15.

制御部2は、所定のプログラムに従ってこのカラー画像処理装置1を構成する各部を制御するものである。原稿読取部3は、自動原稿給送部(ADF:Automatic Document Feeder)、フラットベッド読取部(FBS:Flat Bed Scanner)を備えたものであり、静止原稿又は搬送原稿に対して、原稿の幅方向(主走査方向)の光源及び反射ミラーを原稿の長さ方向(副走査方向)に走査することにより、原稿の画像をカラーラインセンサ(CCD:Charge Coupled Device)により主走査ライン毎に読取ってRGB表色系(RGB color system)のカラー画像データ(第1の色空間で表されるカラー画像データ)を所定の出力先に出力するものであり、画像読取出力手段として機能する。   The control part 2 controls each part which comprises this color image processing apparatus 1 according to a predetermined program. The document reading unit 3 includes an automatic document feeder (ADF) and a flat bed scanner (FBS), and the width direction of the document with respect to a stationary document or a transported document. By scanning the light source and the reflecting mirror in the (main scanning direction) in the length direction (sub-scanning direction) of the document, an image of the document is read for each main scanning line by a color line sensor (CCD: Charge Coupled Device). Outputs color image data of the color system (RGB color system) (color image data represented in the first color space) to a predetermined output destination, and functions as an image reading / outputting unit.

画像処理部4は、第1画像処理部17及び第2画像処理部18から構成されている。第1画像処理部17は、原稿読取部3から出力されたRGB表色系のカラー画像データに対してシェーディング補正、ずれ/ライン補正等の画像処理を施す。第2画像処理部18は、YCrCb表色系のカラー画像データやL*a*b*表色系のカラー画像データに対し、地色補正や色彩補正等の画像処理を施す。   The image processing unit 4 includes a first image processing unit 17 and a second image processing unit 18. The first image processing unit 17 performs image processing such as shading correction and shift / line correction on the RGB color system color image data output from the document reading unit 3. The second image processing unit 18 performs image processing such as ground color correction and color correction on the color image data of the YCrCb color system and the color image data of the L * a * b * color system.

色空間変換部5は、YCrCb変換回路19及びL*a*b*変換回路20から構成されており、原稿読取部3から出力された第1の色空間で表されるカラー画像データ(RGB表色系のカラー画像データ)を第2の色空間で表されるカラー画像データに色空間変換するものであり、色空間変換手段として機能する。YCrCb変換回路19は、原稿読取部3から出力されたRGB表色系のカラー画像データをYCrCb表色系のカラー画像データ(第2の色空間で表されるカラー画像データ)に色空間変換する回路である。L*a*b*変換回路20は、原稿読取部3から出力されたRGB表色系のカラー画像データをL*a*b*表色系のカラー画像データ(第2の色空間で表されるカラー画像データ)に色空間変換する回路である。このYCrCb変換回路19又はL*a*b*変換回路20によって色空間変換されたYCrCb表色系のカラー画像データ又はL*a*b*表色系のカラー画像データは、第2画像処理部18へと送られ、該第2画像処理部18において地色補正や色彩補正等の画像処理が施される。   The color space conversion unit 5 includes a YCrCb conversion circuit 19 and an L * a * b * conversion circuit 20, and color image data (RGB table) expressed in the first color space output from the document reading unit 3. Color system color image data) is converted into color image data represented in the second color space, and functions as a color space conversion means. The YCrCb conversion circuit 19 performs color space conversion of the RGB color system color image data output from the document reading unit 3 into YCrCb color system color image data (color image data expressed in the second color space). Circuit. The L * a * b * conversion circuit 20 converts the RGB color system color image data output from the document reading unit 3 into the L * a * b * color system color image data (expressed in the second color space). Color image data). The YCrCb color system color image data or the L * a * b * color system color image data color space converted by the YCrCb conversion circuit 19 or the L * a * b * conversion circuit 20 is supplied to the second image processing unit. The second image processing unit 18 performs image processing such as ground color correction and color correction.

ブロック化回路6は、原稿読取部3から出力されたRGB表色系のカラー画像データ、又は色空間変換部5において色空間変換されたYCrCb表色系のカラー画像データ又はL*a*b*表色系のカラー画像データを所定画素数単位のブロックに分割する分割手段として機能する。このブロック化回路6は、ラインバッファ21を備えており、RGB表色系のカラー画像データ、YCrCb表色系のカラー画像データ、又はL*a*b*表色系のカラー画像データのいずれかの色空間で表されるカラー画像データをラインバッファ21に一旦格納した後、8×8画素(主走査方向に8画素、副走査方向に8画素)の画素データからなるブロックに分割する処理を行ってカラー画像データをブロック化する。このカラー画像データを8×8画素のブロックに分割する処理は、8ライン(主走査ライン)毎に行われるものである。また、ブロック化回路6により分割されるカラー画像データの一側縁部又は下縁部の画素データが所定画素数単位のブロック、ここでは8×8画素のブロックに満たない場合、例えばカラー画像データの一側縁部が4×8画素の画素データで構成されている場合、所定色の4×8画素の画素データを付加して8×8画素のブロックを形成することにより、カラー画像データをブロック化する処理が行われる。   The block forming circuit 6 outputs RGB color system color image data output from the document reading unit 3, YCrCb color system color image data subjected to color space conversion by the color space conversion unit 5, or L * a * b *. It functions as a dividing unit that divides the color system color image data into blocks each having a predetermined number of pixels. The blocking circuit 6 includes a line buffer 21, and is any of RGB color system color image data, YCrCb color system color image data, or L * a * b * color system color image data. After the color image data expressed in the color space is temporarily stored in the line buffer 21, a process of dividing the image data into blocks of pixel data of 8 × 8 pixels (8 pixels in the main scanning direction and 8 pixels in the sub scanning direction) is performed. Go to block color image data. The process of dividing the color image data into 8 × 8 pixel blocks is performed every 8 lines (main scanning lines). In addition, when the pixel data at one side edge or the lower edge of the color image data divided by the blocking circuit 6 is less than a block of a predetermined number of pixels, here, a block of 8 × 8 pixels, for example, color image data If one side edge portion is composed of 4 × 8 pixel pixel data, 4 × 8 pixel data of a predetermined color is added to form an 8 × 8 pixel block, thereby obtaining color image data. Blocking processing is performed.

付加データ値記憶部22は、カラー画像データに付加される所定色の画素データの表色値を第1の色空間及び第2の色空間の各色空間毎に記憶する記憶手段として機能する。具体的には、RGB表色系、YCrCb表色系、及びL*a*b*表色系の各色空間毎に所定色の画素データの表色値を記憶している。なお、8×8画素のブロックに満たないカラー画像データに付加される所定色の画素データは、本実施の形態においては白データ(白に相当する表色値を持つデータ)であり、付加データ値記憶部22は、RGB表色系に対してはRGB=255、255、255の表色値を、YCrCb表色系に対してはYCrCb=255、0、0の表色値を、L*a*b*表色系に対してはL*a*b*=100、0、0の表色値を記憶している。ブロック化回路6は、ラインバッファ21に格納されているカラー画像データを分割する際に、該カラー画像データの一側縁部又は下縁部の画素データが8×8画素のブロックに満たない場合に、当該カラー画像データの色空間に対応する表色値をこの付加データ値記憶部22から読み出し、読み出した表色値で表される画素データを8×8画素のブロックに満たないブロックからなるカラー画像データの画素データに付加して8×8画素のブロックを形成して、各ブロック毎にJPEGエンコーダ7へ入力する処理を行うものであり、付加手段として機能する。このブロック化回路6において付加される画素データは、ここでは全て白色(所定の1色)を表す画素データの表色値で表されたものである。なお、付加される画素データの色は白色に限定されるものではなく、付加データ値記憶部22に他の色を表す表色値を各色空間毎に記憶しておくことも当然可能である。また、付加される画素データの色は、複数の色であってもよい。   The additional data value storage unit 22 functions as a storage unit that stores the color values of pixel data of a predetermined color added to the color image data for each color space of the first color space and the second color space. Specifically, the color values of pixel data of a predetermined color are stored for each color space of the RGB color system, the YCrCb color system, and the L * a * b * color system. Note that pixel data of a predetermined color added to color image data less than an 8 × 8 pixel block is white data (data having a color value corresponding to white) in the present embodiment, and additional data The value storage unit 22 uses RGB = 255, 255, 255 color values for the RGB color system, YCrCb = 255, 0, 0 color values for the YCrCb color system, L * For the a * b * color system, color values of L * a * b * = 100, 0, 0 are stored. When the block circuit 6 divides the color image data stored in the line buffer 21, the pixel data at one side edge or the lower edge of the color image data is less than an 8 × 8 pixel block. Further, the color value corresponding to the color space of the color image data is read from the additional data value storage unit 22, and the pixel data represented by the read color value is composed of blocks that are less than 8 × 8 pixel blocks. A block of 8 × 8 pixels is formed by adding to the pixel data of the color image data, and a process of inputting each block to the JPEG encoder 7 is performed and functions as an adding unit. The pixel data added in the blocking circuit 6 are all represented here by the color values of the pixel data representing white (predetermined one color). It should be noted that the color of the pixel data to be added is not limited to white, and it is naturally possible to store color values representing other colors in the additional data value storage unit 22 for each color space. Further, the color of the pixel data to be added may be a plurality of colors.

JPEGエンコーダ7は、ブロック化回路6において8×8画素のブロックに分割されて各ブロック毎に入力されたカラー画像データ、及び所定色の画素データが付加されて8×8画素のブロックに形成されて各ブロック毎に入力されたカラー画像データをJPEG方式により圧縮符号化するものであり、カラー画像データの圧縮符号化手段として機能する。このJPEGエンコーダ7は、量子化テーブル23及びハフマンテーブル24を備えており、各ブロック毎のカラー画像データに対し離散コサイン変換(DCT:Discrete Cosine Transform)を行ってDCT係数を生成し、生成したDCT係数を量子化テーブル23に格納されている量子化閾値を参照して量子化し、量子化されたDCT係数をハフマンテーブル24に格納されているハフマン符号を参照して可変長符号化することにより、JPEG方式による圧縮符号化を行う。   The JPEG encoder 7 is divided into 8 × 8 pixel blocks by the blocking circuit 6 and added to the color image data inputted for each block and pixel data of a predetermined color to form an 8 × 8 pixel block. The color image data input for each block is compressed and encoded by the JPEG method, and functions as a compression encoding means for the color image data. The JPEG encoder 7 includes a quantization table 23 and a Huffman table 24, and performs DCT coefficients by performing discrete cosine transform (DCT) on the color image data of each block, and generates the generated DCT. By quantizing the coefficient with reference to the quantization threshold stored in the quantization table 23 and variable-length encoding the quantized DCT coefficient with reference to the Huffman code stored in the Huffman table 24, JPEG compression encoding is performed.

画像メモリ8は、JPEGエンコーダ7においてJPEG方式で圧縮符号化されたカラー画像データを一時的に格納する。JPEGデコーダ9は、画像メモリ8に格納されているカラー画像データの画像を記録部10により用紙に記録する場合に、JPEGエンコーダ7とは逆の処理を行う。具体的には、JPEG方式で圧縮符号化されているカラー画像データをハフマンテーブル24に格納されているハフマン符号を参照して可変長復号化し、可変長復号化して得られたカラー画像データを量子化テーブル23に格納されている量子化閾値を参照して逆量子化することによりDCT係数を生成し、生成したDCT係数に対して離散コサイン逆変換を行うことにより、画像メモリ8に格納されている圧縮符号化されたカラー画像データを伸張する。   The image memory 8 temporarily stores color image data compressed and encoded by the JPEG encoder 7 using the JPEG method. The JPEG decoder 9 performs processing reverse to that of the JPEG encoder 7 when the image of the color image data stored in the image memory 8 is recorded on a sheet by the recording unit 10. Specifically, color image data compressed and encoded by the JPEG method is variable-length decoded with reference to a Huffman code stored in the Huffman table 24, and the color image data obtained by variable-length decoding is quantized. A DCT coefficient is generated by performing inverse quantization with reference to the quantization threshold stored in the conversion table 23, and stored in the image memory 8 by performing discrete cosine inverse transform on the generated DCT coefficient. The compressed and encoded color image data is decompressed.

記録部10は、画像メモリ8から読み出されてJPEGデコーダ9によって伸張されたカラー画像データの画像を所定の用紙に記録するものである。この記録部10における記録方式としては、例えば、電子写真方式やインクジェット記録方式等の各種の記録方式を用いることができる。   The recording unit 10 records an image of color image data read from the image memory 8 and expanded by the JPEG decoder 9 on a predetermined sheet. As a recording method in the recording unit 10, various recording methods such as an electrophotographic method and an ink jet recording method can be used.

表示部11は、このカラー画像処理装置1の状態に関する情報、各種操作指示入力画面、設定状態、動作状態などを文字や図形などで表示する液晶表示装置(LCD:Liquid Crystal Display)や、点灯又は消灯で表示するLEDランプを具備している。操作部12は、原稿読取部3の原稿台に載置された原稿の読取開始命令等を指示するためのスタートキー、読取った原稿のカラー画像データを用紙に記録する場合にその記録部数等を入力するためのテンキー、各種設定を行うためのカーソルキーなど、表示部11と連動した各種操作キーを具備している。なお、原稿読取部3の原稿台に載置された原稿の画像を読取る際の解像度、倍率、読取ったカラー画像データの画像を用紙に記録する場合にはその画像を記録する用紙のサイズ等の指定はこの操作部12から行われる。   The display unit 11 is a liquid crystal display (LCD) that displays information on the state of the color image processing apparatus 1, various operation instruction input screens, setting states, operation states, etc. with characters or graphics, It has an LED lamp that turns off. The operation unit 12 is a start key for instructing an instruction to start reading a document placed on the document table of the document reading unit 3, and the number of copies to be recorded when recording color image data of the read document on a sheet. Various operation keys linked with the display unit 11 such as a numeric keypad for inputting and a cursor key for performing various settings are provided. It should be noted that the resolution, magnification, and size of the read color image data when the image of the document placed on the document table of the document reading unit 3 is recorded on a sheet, the size of the sheet on which the image is recorded, etc. The designation is performed from the operation unit 12.

ROM13は、制御部2によりこのカラー画像処理装置1の各部の動作が制御されるための各種プログラムを記憶している。ROM13に記憶されているプログラムは、具体的には、原稿読取部3で読み取られたカラー画像データに各種画像処理を施すための画像処理プログラムや、RGB表色系のカラー画像データをYCrCb表色系のカラー画像データ又はL*a*b*表色系のカラー画像データに色空間変換するための色空間変換処理プログラム等である。RAM14は、このカラー画像処理装置1の動作処理の実行に伴って取得された各種データや設定情報等を格納する。   The ROM 13 stores various programs for controlling the operation of each unit of the color image processing apparatus 1 by the control unit 2. Specifically, the program stored in the ROM 13 is an image processing program for performing various types of image processing on color image data read by the document reading unit 3, or RGB color system color image data as YCrCb color specification. A color space conversion processing program for performing color space conversion to color image data of the color system or color image data of the L * a * b * color system. The RAM 14 stores various data, setting information, and the like acquired as a result of the operation processing of the color image processing apparatus 1 being executed.

以下、原稿読取部3において読取られたカラー画像データがJPEG方式により圧縮符号化されて画像メモリ8に格納されるまでに行われる画像処理のデータ転送の流れについて、図2に基づいて説明する。   Hereinafter, the flow of data transfer of image processing that is performed until the color image data read by the document reading unit 3 is compressed and encoded by the JPEG method and stored in the image memory 8 will be described with reference to FIG.

原稿読取部3の備えるカラーラインセンサによって読み取られたRGB表色系のアナログ画像データは、原稿読取部3の備える図外のADコンバータによってデジタル画像データに変換され、RGB表色系のカラー画像データとして第1画像処理部17へと送られる。このRGB表色系のカラー画像データは、第1画像処理部17においてシェーディング補正、ずれ/ライン補正等の画像処理が施される。第1画像処理部17においてこれらの画像処理が施されたRGB表色系のカラー画像データは、その使用用途などに応じて以下に示す3パターンの処理のうち、いずれかの処理が行われる。   The RGB color system analog image data read by the color line sensor provided in the document reading unit 3 is converted into digital image data by an AD converter (not shown) provided in the document reading unit 3, and the RGB color system color image data. To the first image processing unit 17. The RGB color system color image data is subjected to image processing such as shading correction and shift / line correction in the first image processing unit 17. The RGB color system color image data subjected to such image processing in the first image processing unit 17 is subjected to any one of the following three patterns according to the intended use.

まず1つ目の処理は、第1画像処理部17において所定の画像処理が施されたRGB表色系のカラー画像データをそのままブロック化回路6に入力する処理である。2つ目の処理は、第1画像処理部17において所定の画像処理が施されたRGB表色系のカラー画像データをYCrCb変換回路19においてYCrCb表色系のカラー画像データへと色空間変換し、第2画像処理部18において地色除去や色彩補正等の画像処理を施した後にブロック化回路6に入力する処理である。3つ目の処理は、第1画像処理部17において所定の画像処理が施されたRGB表色系のカラー画像データをL*a*b*変換回路20においてL*a*b*表色系のカラー画像データへと色空間変換し、第2画像処理部18において地色除去や色彩補正等の画像処理を施した後にブロック化回路6に入力する処理である。   First, the first process is a process of inputting RGB color system color image data subjected to predetermined image processing in the first image processing unit 17 to the blocking circuit 6 as it is. In the second processing, RGB color system color image data subjected to predetermined image processing in the first image processing unit 17 is color space converted into YCrCb color system color image data in the YCrCb conversion circuit 19. The second image processing unit 18 performs image processing such as ground color removal and color correction, and then inputs the processed data to the blocking circuit 6. In the third process, color image data of the RGB color system subjected to predetermined image processing in the first image processing unit 17 is converted into an L * a * b * color system in the L * a * b * conversion circuit 20. The color space is converted into the color image data, and the second image processing unit 18 performs image processing such as ground color removal and color correction, and then inputs them to the block forming circuit 6.

これら3つの処理のうちいずれかの処理が行われてブロック化回路6に入力されたカラー画像データは、ラインバッファ21に一時的に格納される。そして、このラインバッファ21に格納されたカラー画像データは、8ライン毎に8×8画素の画素データからなるブロックに分割され、各ブロック毎にJPEGエンコーダ7へと送られる。この処理を8ライン毎に行ってカラー画像データを主走査方向及び副走査方向にそれぞれ8×8画素のブロック毎に分割した場合に、同カラー画像データの一側縁部又は下縁部の画素データが8×8画素のブロックに満たない場合、所定色の画素データが付加されて8×8画素のブロックが形成された後、JPEGエンコーダ7へと送られる。このようにしてJPEGエンコーダ7に各ブロック毎に送られたカラー画像データは、各ブロック毎にJPEG方式で圧縮符号化された後、画像メモリ8に格納される。   The color image data input to the blocking circuit 6 after any one of these three processes is temporarily stored in the line buffer 21. The color image data stored in the line buffer 21 is divided into blocks each consisting of pixel data of 8 × 8 pixels every 8 lines, and sent to the JPEG encoder 7 for each block. When this process is performed every 8 lines and the color image data is divided into blocks of 8 × 8 pixels in the main scanning direction and the sub-scanning direction, pixels at one side edge or lower edge of the color image data If the data is less than an 8 × 8 pixel block, pixel data of a predetermined color is added to form an 8 × 8 pixel block, which is then sent to the JPEG encoder 7. The color image data sent to the JPEG encoder 7 for each block in this way is compressed and encoded by the JPEG method for each block and then stored in the image memory 8.

以下、主走査方向に44画素、副走査方向60画素の画素データからなるYCrCb表色系のカラー画像データがブロック化回路6に入力された場合を例として、ブロック化回路6において行われる処理について、図3に基づいて説明する。   Hereinafter, the processing performed in the blocking circuit 6 will be described by taking as an example the case where YCrCb color system color image data composed of pixel data of 44 pixels in the main scanning direction and 60 pixels in the sub-scanning direction is input to the blocking circuit 6. This will be described with reference to FIG.

YCrCb変換回路19において色空間変換され、第2画像処理部18において所定の画像処理が施されたYCrCb表色系のカラー画像データ26は、ラインバッファ21に一時的に格納される。そして、このカラー画像データ26に対し8ライン毎に8×8画素の画素データからなるブロックに分割する処理が行われる。ここでは、図示すように、まずYCrCb表色系のカラー画像データ26のうち、最初の8ラインについてブロックA1乃至A5に分割する処理が行われる。この分割処理は、Y成分、Cr成分、Cb成分の各色成分毎に行われるものである。そして、この8×8画素のブロックに分割されたYCrCb表色系のカラー画像データ26は、各ブロック毎にJPEGエンコーダ7へと入力される。具体的には、ブロックA1のY成分のデータA1(Y)、Cr成分のデータA1(Cr)、Cb成分のデータA1(Cb)の順でブロックA1のデータが入力され、続いてブロックA2についても同様に、Y成分のデータA2(Y)、Cr成分のデータA2(Cr)、Cb成分のデータA2(Cb)の順でカラー画像データが入力される。これらの処理は、ブロックA3乃至A5についても同様に行われる。   The YCrCb color system color image data 26 that has been color space converted by the YCrCb conversion circuit 19 and subjected to predetermined image processing by the second image processing unit 18 is temporarily stored in the line buffer 21. Then, the color image data 26 is divided into blocks each having 8 × 8 pixel data for every 8 lines. Here, as shown in the figure, first, in the YCrCb color system color image data 26, the first eight lines are divided into blocks A1 to A5. This division processing is performed for each color component of the Y component, the Cr component, and the Cb component. The YCrCb color system color image data 26 divided into 8 × 8 pixel blocks is input to the JPEG encoder 7 for each block. Specifically, the data of the block A1 is input in the order of the Y component data A1 (Y), the Cr component data A1 (Cr), and the Cb component data A1 (Cb) of the block A1, and then the block A2 Similarly, color image data is input in the order of Y component data A2 (Y), Cr component data A2 (Cr), and Cb component data A2 (Cb). These processes are similarly performed for the blocks A3 to A5.

ここで、ラインバッファ21に格納されているYCrCb表色系のカラー画像データ26は、主走査方向に44の画素データが並んで構成されたものであるため、8×8画素のブロックに分割した場合、ブロックA6は4×8画素の画素データから構成されるものとなり、8×8画素に満たない領域(図中ハッチング部分)ができる。したがって、8×8画素のブロックを形成して各ブロック毎にJPEGエンコーダ7へ入力するために、このブロックA6の8×8画素に満たない領域に白を表す表色値で表される画素データを付加して8×8画素のブロックを形成する処理が行われる。ここで、画素データが付加されるカラー画像データは、YCrCb表色系のカラー画像データであるため、ブロック化回路6は、YCrCb表色系において「白」を表す表色値、すなわちYCrCb=255、0、0を付加データ値記憶部22から読み出して当該表色値で表される画素データを生成して付加する。したがって、ブロックA6については、Y成分のデータA6(Y)にY=255の値で表されるY成分の画素データが付加されて8×8画素の画素データからなるブロックが形成され、Cr成分のデータA6(Cr)にCr=0の値で表されるCr成分の画素データが付加されて8×8画素の画素データからなるブロックが形成され、Cb成分のデータA6(Cb)にCb=0の値で表されるCb成分の画素データが付加されて8×8画素の画素データからなるブロックが形成され、各色成分毎に順次JPEGエンコーダ7へと送られる。   Here, since the color image data 26 of the YCrCb color system stored in the line buffer 21 is composed of 44 pixel data arranged in the main scanning direction, it is divided into blocks of 8 × 8 pixels. In this case, the block A6 is composed of pixel data of 4 × 8 pixels, and an area less than 8 × 8 pixels (hatched portion in the figure) is formed. Therefore, in order to form a block of 8 × 8 pixels and input it to the JPEG encoder 7 for each block, pixel data represented by a color value representing white in an area less than 8 × 8 pixels of this block A6 Is added to form an 8 × 8 pixel block. Here, since the color image data to which the pixel data is added is color image data of the YCrCb color system, the blocking circuit 6 uses the color value representing “white” in the YCrCb color system, that is, YCrCb = 255. , 0, 0 are read from the additional data value storage unit 22 to generate and add pixel data represented by the color values. Therefore, for the block A6, Y component pixel data represented by the value Y = 255 is added to the Y component data A6 (Y) to form a block consisting of 8 × 8 pixel pixel data, and the Cr component The pixel data of the Cr component represented by the value of Cr = 0 is added to the data A6 (Cr) of the data to form a block composed of pixel data of 8 × 8 pixels, and the data A6 (Cb) of the Cb component has Cb = Cb component pixel data represented by a value of 0 is added to form a block of pixel data of 8 × 8 pixels, and each color component is sequentially sent to the JPEG encoder 7.

これらブロックA1乃至A6に対して行われる処理は、8ライン毎に行われるものであり、ブロックB1乃至B6以降、同様に処理が行われる。また、図示するように、このYCrCb表色系のカラー画像データ26は、副走査方向に60画素の画素データが並んで構成されているため、ブロックH1乃至H6について上記のブロックA6と同様に8×8画素のブロックに満たない部分が生じる。これらの8×8画素のブロックに満たないカラー画像データに対しても白を表す画素データを付加する処理が行われた後、JPEGエンコーダ7へと入力される。   The processing performed on these blocks A1 to A6 is performed every 8 lines, and the processing is similarly performed on and after the blocks B1 to B6. Further, as shown in the figure, the YCrCb color system color image data 26 is composed of pixel data of 60 pixels arranged in the sub-scanning direction, so that the blocks H1 to H6 are 8 similarly to the block A6 described above. A portion less than a block of × 8 pixels is generated. A process of adding pixel data representing white to color image data less than these 8 × 8 pixel blocks is performed and then input to the JPEG encoder 7.

このように、8×8画素の画素データからなるブロックにブロック化されたカラー画像データが各ブロック毎にJPEGエンコーダ7に入力されると、JPEGエンコーダ7では入力された各ブロック毎のカラー画像データを色成分毎にJPEG方式で圧縮符号化する処理が行われる。すなわち、入力されたブロック毎のデータを離散コサイン変換し、量子化テーブル23に格納されている量子化閾値を参照して量子化し、ハフマンテーブル24に格納されているハフマン符号を参照して可変長符号化することにより圧縮符号化を行う。このように、圧縮符号化された各ブロック毎のカラー画像データは、画像メモリ8へと送られ該画像メモリ8に格納される。   As described above, when the color image data blocked into blocks composed of pixel data of 8 × 8 pixels is input to the JPEG encoder 7 for each block, the JPEG encoder 7 inputs the color image data for each block. For each color component is compressed and encoded by the JPEG method. That is, the input block-by-block data is subjected to discrete cosine transform, quantized with reference to the quantization threshold stored in the quantization table 23, and variable length with reference to the Huffman code stored in the Huffman table 24. Compression encoding is performed by encoding. In this way, the color image data for each block subjected to compression encoding is sent to the image memory 8 and stored in the image memory 8.

以上、YCrCb表色系のカラー画像データをJPEG方式で圧縮符号化する場合について説明したが、RGB表色系のカラー画像データ又はL*a*b*表色系のカラー画像データをJPEG方式で圧縮符号化する場合についても同様の処理が行われる。ただし、例えばRGB表色系のカラー画像データに白色を表す画素データを付加する場合に、上記のYCrCb表色系のカラー画像データに付加した画素データの表色値、すなわちRGB=255、0、0の表色値によって表される画素データを生成して付加すると、画素データが付加された部分の画像は白色にならず、例えばJPEG方式で圧縮符号化したカラー画像データをJPEGデコーダ9で伸張して記録部10において記録した場合など、画素データが付加された部分に不要な画像が出現する。したがって、RGB表色系のカラー画像データをJPEG方式で圧縮符号化する場合には、RGB表色系において白を表す表色値RGB=255、255、255を付加データ値記憶部22から読出し、当該表色値で表される画素データを生成して8×8画素のブロックに満たない部分のカラー画像データに付加する。また、L*a*b*表色系のカラー画像データをJPEG方式により圧縮符号化する場合は、L*a*b*表色系において白を表す表色値L*a*b*=100、0、0を付加データ記憶部22から読み出し、該表色値で表される画素データを生成して付加する処理が行われる。このように、各色空間毎に白を示す表色値を予め記憶しておき、ブロック化回路6からJPEGエンコーダ7へと入力されるカラー画像データの色空間に応じた表色値を読み出して画素データを付加することにより、カラー画像データの色空間に関わらず同じ表色値の画素データを付加した場合のように不要な画像が出現するのを防止することができる。   The case where the YCrCb color system color image data is compression-encoded with the JPEG system has been described above. However, the RGB color system color image data or the L * a * b * color system color image data with the JPEG system is described. Similar processing is performed for compression encoding. However, for example, when pixel data representing white is added to RGB color system color image data, the color values of the pixel data added to the YCrCb color system color image data, that is, RGB = 255, 0, When pixel data represented by a color value of 0 is generated and added, the image of the portion to which the pixel data is added does not become white. For example, color image data compressed and encoded by the JPEG method is decompressed by the JPEG decoder 9 Then, when recording is performed in the recording unit 10, an unnecessary image appears in a portion to which pixel data is added. Therefore, when RGB color system color image data is compression-encoded by the JPEG method, the color values RGB = 255, 255, 255 representing white in the RGB color system are read from the additional data value storage unit 22, Pixel data represented by the color value is generated and added to the color image data of a portion less than the 8 × 8 pixel block. When color image data of the L * a * b * color system is compression-encoded by the JPEG method, the color value L * a * b * = 100 representing white in the L * a * b * color system. , 0, 0 are read from the additional data storage unit 22 to generate and add pixel data represented by the color values. In this way, the color value indicating white is stored in advance for each color space, and the color value corresponding to the color space of the color image data input from the blocking circuit 6 to the JPEG encoder 7 is read out to obtain a pixel. By adding data, it is possible to prevent an unnecessary image from appearing as in the case where pixel data having the same color value is added regardless of the color space of the color image data.

また、上記のカラー画像データに白色の画素データを付加する処理は、原稿サイズ、解像度、拡大又は縮小を行う場合にはその倍率、読取ったカラー画像データの画像を用紙に記録する場合には、その画像が記録される用紙のサイズなど、種々の条件を考慮して行われる。例えば、本実施の形態において説明した主走査方向に44画素、副走査方向60画素のカラー画像データを2倍に拡大した場合、その拡大したカラー画像データは、主走査方向に88画素、副走査方向に120画素の画素データから構成されるものであるため、8×8画素のブロック毎に分割する処理を行った場合、8×8画素のブロックに満たない部分はできず、上記の画素データを付加する処理は不要である。また、本実施の形態においては、ブロック化回路6において8×8画素のブロック毎に分割された各ブロック毎のカラー画像データ、又は所定色の画素データが付加されて8×8画素のブロックに形成された各ブロック毎のカラー画像データがJPEGエンコーダ7において圧縮符号化されるが、所定画素数単位のブロックはこれに限定されるものではなく、例えば所定画素数単位のブロックを4×4画素のブロックとして上記の処理を行うことも当然可能である。   The process of adding white pixel data to the color image data described above includes the document size, resolution, magnification when performing enlargement or reduction, and recording the image of the read color image data on paper. This is performed in consideration of various conditions such as the size of the paper on which the image is recorded. For example, when the color image data of 44 pixels in the main scanning direction and 60 pixels in the sub scanning direction described in the present embodiment is doubled, the enlarged color image data is 88 pixels in the main scanning direction and the sub scanning. Since it is composed of pixel data of 120 pixels in the direction, when the process of dividing each block of 8 × 8 pixels is performed, a portion less than an 8 × 8 pixel block cannot be formed, and the above pixel data The process of adding is unnecessary. Further, in the present embodiment, color image data for each block divided by the block forming circuit 6 for each 8 × 8 pixel block or pixel data of a predetermined color is added to the 8 × 8 pixel block. The formed color image data for each block is compression-encoded by the JPEG encoder 7, but the block of a predetermined number of pixels is not limited to this. For example, a block of a predetermined number of pixels is 4 × 4 pixels. It is naturally possible to perform the above processing as a block.

以下、カラー原稿の読取開始命令があった場合に、カラー画像処理装置1において行われる処理動作について、図4に示すフローチャートに基づいて説明する。なお、このカラー画像処理装置1において行われる処理動作は、制御部2の制御命令に従って行われるものである。   The processing operation performed in the color image processing apparatus 1 when there is a color document reading start command will be described below with reference to the flowchart shown in FIG. The processing operation performed in the color image processing apparatus 1 is performed in accordance with a control command from the control unit 2.

制御部2は、原稿読取部3の原稿台に載置されたカラー原稿の読取開始命令があったか否かを操作部12のスタートキーの押下の有無に基づいて判断する(S1)。そして、カラー原稿の読取開始命令があったと判断した場合(S1:YES)、原稿読取部3はカラー原稿の画像読取りを開始する(S2)。このようにして原稿読取部3によって読取られたRGB表色系のカラー画像データは、順次第1画像処理部17へと送られて該第1画像処理部17においてシェーディング補正等の所定の画像処理が施される。続いて、制御部2は、指定されている色空間、具体的には、JPEG方式で圧縮符号化するカラー画像データの色空間がRGB表色系であるか否かを判断する(S3)。制御部2は、指定されている色空間がRGB表色系ではないと判断した場合には(S3:NO)、第1画像処理部17において所定の画像処理が施されたRGB表色系のカラー画像データを色空間変換部5に指定されている色空間、具体的には、YCrCb表色系又はL*a*b*表色系のカラー画像データに色空間変換させ、色空間変換され第2画像処理部18において所定の画像処理が施されたカラー画像データをブロック化回路6のラインバッファ21に一時的に格納する(S4)。   The control unit 2 determines whether or not there is an instruction to start reading a color document placed on the document table of the document reading unit 3 based on whether or not the start key of the operation unit 12 is pressed (S1). If it is determined that a color original reading start command has been received (S1: YES), the original reading unit 3 starts reading an image of the color original (S2). The RGB color system color image data read by the document reading unit 3 in this way is sequentially sent to the first image processing unit 17 where predetermined image processing such as shading correction is performed. Is given. Subsequently, the control unit 2 determines whether or not the designated color space, specifically, the color space of color image data to be compressed and encoded by the JPEG method is an RGB color system (S3). When the control unit 2 determines that the designated color space is not the RGB color system (S3: NO), the control unit 2 uses the RGB color system that has undergone predetermined image processing in the first image processing unit 17. The color space is converted into the color space specified by the color space conversion unit 5, specifically, the color image data of the YCrCb color system or L * a * b * color system, and the color space is converted. The color image data subjected to the predetermined image processing in the second image processing unit 18 is temporarily stored in the line buffer 21 of the blocking circuit 6 (S4).

一方、制御部2は、指定されている色空間がRGB表色系であると判断した場合(S3:YES)、第1画像処理部17において所定の画像処理が施されたRGB表色系のカラー画像データをそのままブロック化回路6のラインバッファ21に一時的に格納する(S5)。   On the other hand, when the control unit 2 determines that the designated color space is the RGB color system (S3: YES), the control unit 2 uses the RGB color system subjected to the predetermined image processing in the first image processing unit 17. The color image data is temporarily stored in the line buffer 21 of the blocking circuit 6 as it is (S5).

このように、RGB表色系、YCrCb表色系又はL*a*b*表色系のいずれかの色空間で表されるカラー画像データがラインバッファ21に格納されると、ブロック化回路6は、格納されたカラー画像データを8×8画素のブロックに分割する処理を行うと共に、8×8画素のブロックに満たない画素データがあるか否かを判断する(S6)。ここで、8×8画素のブロックに満たない画素データはないと判断した場合には(S6:NO)、格納されているカラー画像データを8×8画素のブロックに分割し、各ブロック毎にJPEGエンコーダ7に入力する処理のみを行う(S7)。   As described above, when the color image data represented by any one of the RGB color system, YCrCb color system, or L * a * b * color system is stored in the line buffer 21, the blocking circuit 6 is used. Performs a process of dividing the stored color image data into blocks of 8 × 8 pixels, and determines whether there is pixel data less than the block of 8 × 8 pixels (S6). Here, when it is determined that there is no pixel data that is less than the 8 × 8 pixel block (S6: NO), the stored color image data is divided into 8 × 8 pixel blocks, and each block is divided. Only the process of inputting to the JPEG encoder 7 is performed (S7).

ブロック化回路6は、逆に8×8画素のブロックに満たない画素データがあると判断した場合には(S6:YES)、指定されている色空間に対応する所定色の画素データの表色値を付加データ値記憶部22から読み出す(S8)。そして、読み出した表色値で表される画素データを8×8画素のブロックに満たないカラー画像データの画素データに付加し、8×8画素のブロックを形成してJPEGエンコーダ7に入力する(S9)。   On the contrary, when the block forming circuit 6 determines that there is less than 8 × 8 pixel block data (S6: YES), the color specification of pixel data of a predetermined color corresponding to the designated color space The value is read from the additional data value storage unit 22 (S8). Then, the pixel data represented by the read color value is added to the pixel data of the color image data less than the 8 × 8 pixel block to form an 8 × 8 pixel block and input to the JPEG encoder 7 ( S9).

そして、制御部2は、ブロック化回路6におけるブロック化処理及びJPEGエンコーダ7における圧縮符号化処理が完了したか否かを判断し(S10)、完了していないと判断した場合には(S10:NO)、読取られた原稿のカラー画像データの全画素データに対してJPEG方式による圧縮符号化の処理が完了するまでS6乃至S9のブロック化の処理及びJPEGエンコーダ7における圧縮符号化処理が行われる。   Then, the control unit 2 determines whether or not the blocking process in the blocking circuit 6 and the compression encoding process in the JPEG encoder 7 have been completed (S10), and if it is determined that they have not been completed (S10: NO), the block encoding process of S6 to S9 and the compression encoding process in the JPEG encoder 7 are performed on all pixel data of the color image data of the read document until the compression encoding process by the JPEG method is completed. .

以上説明したカラー画像処理装置1は、例えばコピー機能、ファクシミリ機能、スキャナ機能などを備える複合機に適用することが可能である。この場合、コピー機能又はファクシミリ機能のために原稿の読取りが行われると、図2に基づいて説明したように、読取った原稿のRGB表色系のカラー画像データをL*a*b*表色系のカラー画像データに変換してJPEG方式で圧縮符号化する処理を行い、スキャナ機能のために原稿の読取りが行われた場合には、読取った原稿のRGB表色系のカラー画像データをYCrCb表色系のカラー画像データに変換してJPEG方式で圧縮符号化する処理が行われる。また、読取られたRGB表色系のカラー画像データをJPEG方式で圧縮符号化するこもと当然可能であるが、例えばUSB等で通信可能に接続されたクライアントPC(不図示)に出力するような場合には、JPEGエンコーダ7におけるJPEG方式による圧縮符号化することなくクライアントPCに出力するようにしてもよい。   The color image processing apparatus 1 described above can be applied to a multifunction machine having a copy function, a facsimile function, a scanner function, and the like. In this case, when the original is read for the copy function or the facsimile function, as described with reference to FIG. 2, the RGB color system color image data of the read original is converted into the L * a * b * color specification. When the original is read for the scanner function, the RGB color system color image data of the read original is converted to YCrCb. A process of converting into color image data of the color system and compressing and encoding by the JPEG method is performed. In addition, it is naturally possible to compress and encode the read RGB color system color image data by the JPEG method, but, for example, it may be output to a client PC (not shown) that is communicably connected via USB or the like. In this case, the data may be output to the client PC without being compressed and encoded by the JPEG method in the JPEG encoder 7.

このように、各機能によって使用する色空間が異なっていても、所定色の画素データを表す表色値が各色空間毎に記憶されており、カラー画像データに白色を表す画素データを付加してJPEG方式で圧縮符号化する場合に、カラー画像データの色空間に対応した画素データを付加することができるので、使用する色空間を変えたことにより白でない不要な画像が出現するということはない。   As described above, even if the color space to be used differs depending on each function, color values representing pixel data of a predetermined color are stored for each color space, and pixel data representing white is added to the color image data. When JPEG compression encoding is performed, pixel data corresponding to the color space of color image data can be added, so that an unnecessary image that is not white does not appear by changing the color space to be used. .

カラー画像データをJPEG方式により圧縮符号化する手段を備えた各種画像処理装置に適用することが可能である。   The present invention can be applied to various image processing apparatuses having means for compressing and encoding color image data by the JPEG method.

本発明の実施の形態に係るカラー画像処理装置の構成を示したブロック図である。1 is a block diagram showing a configuration of a color image processing apparatus according to an embodiment of the present invention. 原稿読取部で読取られた原稿のカラー画像データに対して行われる処理のデータ転送の流れを示した図である。FIG. 5 is a diagram illustrating a data transfer flow of processing performed on color image data of a document read by a document reading unit. ブロック化回路において、カラー画像データを所定画素数単位のブロックにブロック化する処理について説明するための図である。It is a figure for demonstrating the process which blocks color image data into the block of a predetermined pixel number unit in a blocking circuit. カラー原稿の読取開始命令があった場合に、カラー画像処理装置において行われる処理動作を示したフローチャートである。6 is a flowchart showing processing operations performed in a color image processing apparatus when there is a color document reading start command.

符号の説明Explanation of symbols

1 カラー画像処理装置
2 制御部(MPU)
3 原稿読取部
5 色空間変換部
6 ブロック化回路
7 JPEGエンコーダ
13 ROM
19 YCrCb変換回路
20 L*a*b*変換回路
21 ラインバッファ
22 付加データ値記憶部
1 Color Image Processing Device 2 Control Unit (MPU)
3 Document Reading Unit 5 Color Space Conversion Unit 6 Blocking Circuit 7 JPEG Encoder 13 ROM
19 YCrCb conversion circuit 20 L * a * b * conversion circuit 21 Line buffer 22 Additional data value storage unit

Claims (3)

原稿の画像を読取って第1の色空間で表されるカラー画像データを出力する画像読取出力手段と、該画像読取出力手段から出力された第1の色空間で表されるカラー画像データを第2の色空間で表されるカラー画像データに色空間変換する色空間変換手段と、所定色の画素データの表色値を前記第1の色空間及び前記第2の色空間の各色空間毎に記憶する記憶手段と、前記画像読取出力手段から出力された第1の色空間で表されるカラー画像データ、又は前記色空間変換手段により色空間変換された第2の色空間で表されるカラー画像データを主走査方向及び副走査方向に順次所定画素数単位のブロックに分割する分割手段と、該分割手段により分割されるカラー画像データの一側縁部又は下縁部の画素データが前記所定画素数単位のブロックに満たない場合に、当該カラー画像データの色空間に対応する表色値を前記記憶手段から読み出し、該表色値によって表される所定色の画素データを付加することにより前記所定画素数単位のブロックを形成して、各ブロック毎にカラー画像データの圧縮符号化手段へ入力する付加手段とを備えることを特徴とするカラー画像処理装置。   Image reading / outputting means for reading an image of a document and outputting color image data expressed in a first color space; and color image data expressed in the first color space output from the image reading / outputting means Color space conversion means for performing color space conversion into color image data represented by two color spaces, and color values of pixel data of a predetermined color for each color space of the first color space and the second color space. Storage means for storing; color image data expressed by the first color space output from the image reading output means; or color expressed by the second color space color space converted by the color space conversion means Dividing means for sequentially dividing the image data into blocks each having a predetermined number of pixels in the main scanning direction and the sub-scanning direction, and pixel data at one side edge or lower edge of the color image data divided by the dividing means Block of pixels If not, the color value corresponding to the color space of the color image data is read from the storage means, and pixel data of a predetermined color represented by the color value is added to the predetermined number of pixels. A color image processing apparatus comprising: an adding unit that forms blocks and inputs the color image data to a compression encoding unit for each block. 前記記憶手段は、所定の1色を表す画素データの表色値を前記第1の色空間及び前記第2の色空間の各色空間毎に記憶しており、前記付加手段により付加される画素データは、全て前記所定の1色を表す画素データの表色値で表されたものであることを特徴とする請求項1記載のカラー画像処理装置。   The storage means stores colorimetric values of pixel data representing a predetermined color for each color space of the first color space and the second color space, and is added by the adding means. 2. The color image processing apparatus according to claim 1, wherein all are expressed by color values of pixel data representing the predetermined one color. 前記圧縮符号化手段は、前記所定画素数単位のカラー画像データを各ブロック毎にJPEG方式により圧縮符号化するものであり、前記記憶手段に記憶されている所定の1色を表す画素データの表色値は、白色を表したものであることを特徴とする請求項2記載のカラー画像処理装置。

The compression encoding means compresses and encodes the color image data in units of the predetermined number of pixels by the JPEG method for each block, and is a table of pixel data representing a predetermined color stored in the storage means. The color image processing apparatus according to claim 2, wherein the color value represents white.

JP2003345736A 2003-10-03 2003-10-03 Color image processing device Expired - Fee Related JP3867857B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003345736A JP3867857B2 (en) 2003-10-03 2003-10-03 Color image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003345736A JP3867857B2 (en) 2003-10-03 2003-10-03 Color image processing device

Publications (2)

Publication Number Publication Date
JP2005117148A true JP2005117148A (en) 2005-04-28
JP3867857B2 JP3867857B2 (en) 2007-01-17

Family

ID=34538917

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003345736A Expired - Fee Related JP3867857B2 (en) 2003-10-03 2003-10-03 Color image processing device

Country Status (1)

Country Link
JP (1) JP3867857B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007201526A (en) * 2006-01-23 2007-08-09 Nippon Hoso Kyokai <Nhk> Adaptive image rotation encoder and decoder

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007201526A (en) * 2006-01-23 2007-08-09 Nippon Hoso Kyokai <Nhk> Adaptive image rotation encoder and decoder
JP4576342B2 (en) * 2006-01-23 2010-11-04 日本放送協会 Adaptive image rotation encoding apparatus and decoding apparatus

Also Published As

Publication number Publication date
JP3867857B2 (en) 2007-01-17

Similar Documents

Publication Publication Date Title
US7499592B2 (en) Image decoding apparatus and its control method
US7933049B2 (en) Multifunction printer and image processing method
US20050276500A1 (en) Image encoding apparatus, and image processing apparatus and its control method
JP4156631B2 (en) Image processing method and image processing apparatus
WO2002102056A1 (en) Image encoding method, and image device
JP2006101010A (en) Image processing apparatus, image processing method, and program, and storage medium
JP2011040970A (en) Data processing apparatus and data processing method
JP3867857B2 (en) Color image processing device
JPH1175183A (en) Image signal processing method and device and storage medium
JP2006217145A (en) Image processor
JP4262145B2 (en) Image processing apparatus and control method thereof
JP3538352B2 (en) Image encoding method, image decoding method and color facsimile apparatus
JP4926128B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2007158816A (en) Image processing apparatus
US7450775B2 (en) Image processing apparatus for efficient storage of variable block length data
JP2005086353A (en) Picture processor, control method therefor, computer program and computer readable storage medium
JP2005223374A (en) Image processor
JPH0440075A (en) Picture encoding device
JP4711879B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP6142833B2 (en) Electronics
JP2001309182A (en) Image processing unit and method
JP2012054802A (en) Information processor, information processing method, and program
JPH0440074A (en) Picture encoding device
JP2013121100A (en) Image processing device and image processing method
JP2007295415A (en) Image processing method and image processing apparatus

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060915

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061004

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091020

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101020

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111020

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111020

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121020

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131020

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131020

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20141020

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees