JP2009212692A - Image processor and image forming apparatus - Google Patents

Image processor and image forming apparatus Download PDF

Info

Publication number
JP2009212692A
JP2009212692A JP2008052280A JP2008052280A JP2009212692A JP 2009212692 A JP2009212692 A JP 2009212692A JP 2008052280 A JP2008052280 A JP 2008052280A JP 2008052280 A JP2008052280 A JP 2008052280A JP 2009212692 A JP2009212692 A JP 2009212692A
Authority
JP
Japan
Prior art keywords
image data
resolution
image
unit
foreground
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
JP2008052280A
Other languages
Japanese (ja)
Inventor
Hiroshi Kawamura
洋志 川村
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2008052280A priority Critical patent/JP2009212692A/en
Publication of JP2009212692A publication Critical patent/JP2009212692A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor and image forming apparatus applying synthetic processing that prevents deterioration in the image quality with respect to image data of different resolution. <P>SOLUTION: An upsampling module 314 transmits a notification signal to a DMA (Direct Memory Access) 311 for a high-resolution line, when a DMA 313 for a low resolution line stores a background layer read from a main memory 7 into a line buffer. The DMA 311 for a high-resolution line acquiring the notification signal reads a foreground layer 71 from the main memory 7, to transmit the foreground layer to a delay circuit 312, and transmits a synchronization signal to the upsampling module 314. The upsampling module 314 for acquiring the synchronization signal performs upsampling processing on the foreground layer 72 stored in the line buffer and transmits the upsampled background layer 72 to a synthesis circuit 310. The delay circuit 312 stores the acquired foreground layer 71 for a prescribed time and subsequently transmits the acquired foreground to the synthesis circuit 310. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、解像度が異なる複数の画像データを合成する画像処理装置及び該画像処理装置を備える画像形成装置に関する。   The present invention relates to an image processing apparatus that synthesizes a plurality of image data having different resolutions, and an image forming apparatus including the image processing apparatus.

近年、デジタル画像システムが目覚しい発達を遂げ、デジタル画像処理技術の構築が進んでいる。電子写真方式又はインクジェット方式などを用いた複写機、複合機の分野においては、例えばスキャナによって読み取った文書(原稿、画像)を電子データとして保存しておき、保存された文書ファイルを管理し、再利用することが要求されている。また、文書ファイルを圧縮して電子メールで送信することがなされている。
一般的に、スキャナで読み取られた画像(スキャン画像)はファイルサイズが大きいので、スキャン画像を蓄積する際又は伝送する際においては画像の圧縮技術が必要不可欠となっている。
In recent years, digital image systems have made remarkable progress, and the construction of digital image processing technology is progressing. In the field of copiers and multi-function peripherals using the electrophotographic system or ink jet system, for example, documents (originals, images) read by a scanner are stored as electronic data, the stored document files are managed, It is required to use. In addition, the document file is compressed and transmitted by e-mail.
In general, since an image (scanned image) read by a scanner has a large file size, an image compression technique is indispensable when storing or transmitting a scanned image.

高圧縮率を実現するための圧縮技術の1つにレイヤー分離に基づく画像圧縮技術がある。レイヤー分離に基づく画像圧縮技術とは、画像を前景レイヤー及び背景レイヤーに分離し、それぞれのレイヤーに適した圧縮技術を用いて圧縮し、最終的に高圧縮画像を生成するものである。なお、前景レイヤーとは文字・線画を表わすレイヤーであり、JBIG(Joint Bi-level Image experts Group)、MMR(Modified Modified Read code)、LZW(Lempel Ziv Welch)などの可逆圧縮技術を用いて圧縮されるのが一般的である。一方、背景レイヤーとは文字・線画以外の画像コンテンツを表わすレイヤーであり、JPEG(Joint Photographic Experts Group)などの非可逆圧縮技術を用いて圧縮されるのが一般的である。   One compression technique for realizing a high compression ratio is an image compression technique based on layer separation. The image compression technique based on layer separation is to separate an image into a foreground layer and a background layer, compress the image using a compression technique suitable for each layer, and finally generate a highly compressed image. The foreground layer is a layer representing characters and line drawings, and is compressed using lossless compression techniques such as JBIG (Joint Bi-level Image experts Group), MMR (Modified Modified Read code), and LZW (Lempel Ziv Welch). It is common. On the other hand, the background layer is a layer representing image content other than characters and line drawings, and is generally compressed using an irreversible compression technique such as JPEG (Joint Photographic Experts Group).

このようなレイヤー分離に基づく画像圧縮技術を用いて圧縮された画像データを展開する場合、前景レイヤーの解像度と背景レイヤーの解像度とが異なることを考慮する必要がある。単純に高解像度のレイヤーと低解像度のレイヤーとを合成した場合には、例えば、低解像度のレイヤーが荒くなるという問題がある。
また、レイヤー分離に基づく画像圧縮技術を用いて圧縮された画像データを展開する処理は、処理速度のことを考慮する必要がない場合には、ソフトウェアによって実行されても問題はないが、複合機などの記憶部に格納されている画像データを複合機において展開する場合には、リアルタイムでの処理が要求されるので、ハードウェアによって実行される方が現実的である。
When developing image data compressed using such an image compression technique based on layer separation, it is necessary to consider that the foreground layer resolution and the background layer resolution are different. When a high resolution layer and a low resolution layer are simply combined, there is a problem that, for example, the low resolution layer becomes rough.
In addition, the process of developing image data compressed using an image compression technique based on layer separation can be executed by software when there is no need to consider the processing speed. When image data stored in a storage unit such as the above is expanded in a multi-function peripheral, real-time processing is required. Therefore, it is more realistic that the image data is executed by hardware.

ハードウェアによって異なる解像度の画像データを合成する技術に関しては、例えば特許文献1に開示されている。特許文献1に開示された技術は、高解像度の文字画像と低解像度の写真画像との合成をハードウェアによって行なう技術であり、高解像度の文字画像と低解像度の写真画像とを合成する際に、輪郭指定回路、LUT(Look Up Table)を用意しておき、解像度が100dpi(dot per inch)相当の写真画像データを解像度が400dpi相当の写真画像データに変換して合成を行なう構成である。このような構成により、単純に高解像度の文字画像と低解像度の写真画像とを合成した場合に低解像度の写真レイヤーが荒くなるという問題を解消することができる。
特開平4−14372号公報
A technique for synthesizing image data having different resolutions depending on hardware is disclosed in Patent Document 1, for example. The technique disclosed in Patent Document 1 is a technique for synthesizing a high-resolution character image and a low-resolution photographic image by hardware, and when synthesizing a high-resolution character image and a low-resolution photographic image. A contour designating circuit and a LUT (Look Up Table) are prepared, and photographic image data with a resolution equivalent to 100 dpi (dot per inch) is converted into photographic image data with a resolution equivalent to 400 dpi and synthesized. With such a configuration, it is possible to solve the problem that a low-resolution photographic layer becomes rough when a high-resolution character image and a low-resolution photographic image are simply combined.
Japanese Patent Laid-Open No. 4-14372

しかしながら、上述した技術では、文字・線画の画像用のメモリ(イメージメモリ)と、写真画像用のメモリ(イメージメモリ)とが、ハードディスク及びメインメモリなどとは別途に必要となり、画像データが高解像度になる程大きな容量のイメージメモリが必要となるという問題を有する。また、上述した技術では、高解像度の文字画像と低解像度の写真画像とを合成する際に少しでも画質を上げるために、輪郭指定回路及びLUTなどを用いているが、これらを備えることによって、装置の構成が複雑化し、またコストアップの要因にもなる。   However, the above-described technology requires a memory for image of character / line drawing (image memory) and a memory for photographic image (image memory) separately from the hard disk and main memory, and the image data has a high resolution. As a result, there is a problem that an image memory having a large capacity is required. Further, in the above-described technology, an outline designating circuit and an LUT are used in order to improve the image quality as much as possible when combining a high-resolution character image and a low-resolution photographic image. The configuration of the apparatus becomes complicated and also causes an increase in cost.

本発明は、斯かる事情に鑑みてなされたものであり、その目的とするところは、メモリ量を削減すると共に複雑な構成を備えることなく、異なる解像度の画像データに対して画質の劣化を防止した合成処理を高速に実行することが可能な画像処理装置及び該画像処理装置を備える画像形成装置を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to reduce the amount of memory and prevent deterioration in image quality of image data with different resolutions without providing a complicated configuration. Another object of the present invention is to provide an image processing apparatus capable of executing the combined processing at a high speed and an image forming apparatus including the image processing apparatus.

本発明に係る画像処理装置は、第1解像度の画像データ及び前記第1解像度よりも低い第2解像度の画像データを合成する画像処理装置において、画像データを記憶する記憶手段と、複数の画像データを合成する合成手段と、前記記憶手段から第1解像度の画像データを読み出す第1読出部と、該第1読出部が読み出した第1解像度の画像データを所定時間保持した後に前記合成手段へ送出する遅延回路と、前記記憶手段から第2解像度の画像データを読み出す第2読出部と、該第2読出部が読み出した第2解像度の画像データに対して前記第1解像度への変換処理を行なう解像度変換部とを備え、前記合成手段は、前記遅延回路から送出された画像データ及び前記解像度変換部が変換処理を行なった画像データを合成するように構成されていることを特徴とする。   An image processing apparatus according to the present invention comprises: a storage unit that stores image data; and a plurality of image data in an image processing apparatus that combines image data having a first resolution and image data having a second resolution lower than the first resolution. Synthesizing means for synthesizing the image data, a first reading unit for reading image data of the first resolution from the storage means, and holding the image data of the first resolution read by the first reading unit for a predetermined time and then sending it to the synthesizing means And a second reading unit that reads out the second resolution image data from the storage unit, and performs conversion processing to the first resolution on the second resolution image data read out by the second reading unit. A resolution converter, and the synthesizing unit is configured to synthesize the image data sent from the delay circuit and the image data converted by the resolution converter. And wherein the Rukoto.

本発明によれば、異なる解像度の画像データを合成する際に、低解像度(第2解像度)の画像データに対して高解像度(第1解像度)への変換処理を行なった後に両者を合成するので、異なる解像度の画像データを単純に合成した場合に低解像度の画像データが荒くなるという問題を解消することが可能となる。また、本発明によれば、記憶手段から読み出した低解像度の画像データに対して高解像度への変換処理を行なうと共に、記憶手段から読み出した高解像度の画像データを所定時間保持することによって、低解像度の画像データを合成手段へ送出するタイミングと高解像度の画像データを合成手段へ送出するタイミングとを同期させることが可能となる。   According to the present invention, when image data having different resolutions are combined, the low resolution (second resolution) image data is subjected to the conversion processing to the high resolution (first resolution), and then both are combined. Thus, it is possible to solve the problem that the low-resolution image data becomes rough when the image data with different resolutions are simply combined. Further, according to the present invention, the low resolution image data read from the storage means is converted to high resolution, and the high resolution image data read from the storage means is held for a predetermined time, thereby reducing the low resolution image data. It is possible to synchronize the timing for sending the resolution image data to the synthesizing means and the timing for sending the high-resolution image data to the synthesizing means.

また、記憶手段から低解像度の画像データを読み出す読出部(第2読出部)と、低解像度の画像データに対して高解像度への変換処理を行なう解像度変換部とを備えることにより、画像データの読出処理と高解像度への変換処理とを並列に実行させることが可能となるので、低解像度の画像データが複数に分けて記憶手段に格納されている場合であっても、処理の高速化が可能となる。   Further, the image processing apparatus includes a reading unit (second reading unit) that reads low-resolution image data from the storage unit, and a resolution conversion unit that performs conversion processing of high-resolution on low-resolution image data. Since the reading process and the conversion process to the high resolution can be executed in parallel, the processing speed can be increased even when the low resolution image data is divided into a plurality of pieces and stored in the storage unit. It becomes possible.

本発明に係る画像処理装置は、前記解像度変換部は、前記第2読出部が読み出した第2解像度の画像データを格納するラインバッファと、該ラインバッファに格納された画像データに対して前記第1解像度への変換処理を行なう変換処理部と、前記ラインバッファに第2解像度の画像データが格納されたことを検知する検知手段と、該検知手段がラインバッファに画像データが格納されたことを検知した場合、前記ラインバッファから画像データの読み出しが可能であることを示す通知信号を前記第1読出部へ送出する手段とを有し、前記第1読出部は、前記通知信号を取得した場合、前記記憶手段から第1解像度の画像データを読み出して前記遅延回路へ送出する処理を開始するように構成されており、前記画像データを遅延回路へ送出する処理を開始した場合、同期信号を前記解像度変換部へ送出する手段を有し、前記解像度変換部は、前記同期信号を取得した場合、前記ラインバッファに格納された画像データを前記変換処理部へ送出する処理を開始するように構成されていることを特徴とする。   In the image processing apparatus according to the present invention, the resolution conversion unit stores a line buffer that stores image data of the second resolution read by the second reading unit, and the image data stored in the line buffer. A conversion processing unit that performs conversion processing to one resolution, detection means for detecting that image data of the second resolution is stored in the line buffer, and that the detection means stores image data in the line buffer. And a means for sending a notification signal indicating that image data can be read from the line buffer to the first reading unit when detected, and the first reading unit acquires the notification signal. The first resolution image data is read from the storage means and sent to the delay circuit, and the image data is sent to the delay circuit. When the processing is started, it has means for sending a synchronization signal to the resolution conversion unit. When the resolution conversion unit obtains the synchronization signal, the image data stored in the line buffer is sent to the conversion processing unit. It is characterized by starting the process to send out.

本発明の画像処理装置では、記憶手段から読み出した低解像度の画像データに対して高解像度への変換処理を行なう解像度変換部が、低解像度の画像データを格納するラインバッファと、このラインバッファに格納された画像データに対して高解像度への変換処理を行なう変換処理部とを備えており、ラインバッファに低解像度の画像データが格納されたことを検知した場合、このラインバッファから画像データの読み出しが可能であることを示す通知信号を、記憶手段から高解像度の画像データを読み出す読出部(第1読出部)へ送信する。第1読出部は、通知信号を取得すると、高解像度の画像データの記憶手段からの読み出しを開始し、読み出した高解像度の画像データを順次遅延回路へ送出すると共に、画像データの遅延回路への送出を開始した場合、同期信号を解像度変換部へ送出する。解像度変換部は、同期信号を取得すると、ラインバッファに格納された低解像度の画像データの変換処理部への送出を開始する。   In the image processing apparatus of the present invention, a resolution conversion unit that performs conversion processing to high resolution on low resolution image data read from the storage means includes a line buffer that stores low resolution image data, and the line buffer. A conversion processing unit for converting the stored image data to high resolution. When it is detected that low resolution image data is stored in the line buffer, the image data is read from the line buffer. A notification signal indicating that reading is possible is transmitted to a reading unit (first reading unit) that reads high-resolution image data from the storage unit. When the first reading unit acquires the notification signal, the first reading unit starts reading the high-resolution image data from the storage unit, sequentially sends the read high-resolution image data to the delay circuit, and sends the image data to the delay circuit. When transmission is started, a synchronization signal is transmitted to the resolution conversion unit. When the resolution conversion unit acquires the synchronization signal, it starts sending low-resolution image data stored in the line buffer to the conversion processing unit.

本発明によれば、上述した構成により、ラインバッファに画像データが格納されたことによってラインバッファから画像データの読み出しが可能となった場合に、解像度変換部から第1読出部へ通知信号が通知される。第1読出部は、通知信号の取得に基づいて、記憶手段から高解像度の画像データを読み出して遅延回路への送出を開始すると共に、同期信号を解像度変換部へ送出する。解像度変換部は、同期信号の取得に基づいて、ラインバッファに格納された低解像度の画像データの変換処理部への送出を開始する。遅延回路は、解像度変換部(変換処理部)が行なう処理に要する時間に基づく所定時間画像データを保持するので、解像度変換部(変換処理部)からの画像データの出力タイミングと、遅延回路からの画像データの出力タイミングとを同期させることが可能となる。   According to the present invention, with the configuration described above, when the image data can be read from the line buffer because the image data is stored in the line buffer, the notification signal is notified from the resolution conversion unit to the first reading unit. Is done. Based on the acquisition of the notification signal, the first reading unit reads high-resolution image data from the storage unit and starts sending it to the delay circuit, and also sends a synchronization signal to the resolution conversion unit. The resolution conversion unit starts sending the low-resolution image data stored in the line buffer to the conversion processing unit based on the acquisition of the synchronization signal. Since the delay circuit holds the image data for a predetermined time based on the time required for the processing performed by the resolution conversion unit (conversion processing unit), the output timing of the image data from the resolution conversion unit (conversion processing unit) and the delay circuit It is possible to synchronize the output timing of image data.

本発明に係る画像処理装置は、前記解像度変換部は、前記ラインバッファを複数有しており、前記ラインバッファのうちの一のラインバッファに格納された第2解像度の画像データを読み出して前記変換処理部へ送出する処理と、前記第2読出部が読み出した第2解像度の画像データを他のラインバッファに格納する処理とを並列に行なうように構成されていることを特徴とする。   In the image processing apparatus according to the present invention, the resolution conversion unit includes a plurality of the line buffers, and reads the second resolution image data stored in one of the line buffers and performs the conversion. A process of sending to the processing unit and a process of storing the image data of the second resolution read by the second reading unit in another line buffer are performed in parallel.

本発明によれば、ラインバッファを複数備えることにより、画像データが格納されたラインバッファから画像データを読み出して変換処理部へ送出する処理と、記憶手段から読み出された画像データを他のラインバッファに格納する処理とを並列に行なうことが可能となり、処理速度をより向上させることが可能となる。   According to the present invention, by providing a plurality of line buffers, a process of reading out image data from the line buffer storing the image data and sending it to the conversion processing unit; Processing stored in the buffer can be performed in parallel, and the processing speed can be further improved.

本発明に係る画像形成装置は、上述したような画像処理装置と、該画像処理装置で処理された画像データに基づいて出力画像を形成する画像形成手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes the above-described image processing apparatus and an image forming unit that forms an output image based on image data processed by the image processing apparatus.

本発明にあっては、異なる解像度の画像データを合成する際に、低解像度の画像データに対して高解像度への変換処理を行なった後に両者を合成するので、画質の劣化を防止することができる。また、異なる解像度の画像データを合成する際に、それぞれの画像データを合成手段へ送出するタイミングを同期させることができるので、上述した特許文献1に開示されている技術のように、ハードディスク及びメインメモリなどとは別途にイメージメモリを備える必要がない。従って、汎用のメインメモリのみを用いて処理を行なうことができるので、メモリ量の増大を回避することができる。   In the present invention, when synthesizing image data of different resolutions, the low resolution image data is synthesized after the conversion processing to high resolution is performed, so that deterioration of image quality can be prevented. it can. In addition, when synthesizing image data with different resolutions, the timing of sending the respective image data to the synthesizing means can be synchronized. Therefore, as in the technique disclosed in Patent Document 1 described above, the hard disk and the main It is not necessary to provide an image memory separately from the memory. Therefore, since processing can be performed using only a general-purpose main memory, an increase in the amount of memory can be avoided.

従って、例えばMRC(Mixed Raster Content)に代表されるレイヤー分離に基づく画像圧縮技術を用いて圧縮された画像データを、少ないメモリ量のメモリを用いて高速に展開することができる。また、低解像度の画像データに対する記憶手段からの読出処理と高解像度への変換処理とを並列に実行させることができるので、低解像度の画像データが複数に分けて記憶手段に格納されている場合であっても、処理の高速化が可能である。   Therefore, for example, image data compressed using an image compression technique based on layer separation represented by MRC (Mixed Raster Content) can be developed at high speed using a memory with a small memory amount. In addition, since the low-resolution image data read processing from the storage means and the conversion processing to the high resolution can be executed in parallel, the low-resolution image data is stored in the storage means in a plurality of parts Even so, the processing speed can be increased.

本発明にあっては、異なる解像度の画像データを合成する際に、高解像度への変換処理が実行された低解像度の画像データの合成手段への出力タイミングと、記憶手段から読み出された高解像度の画像データの合成手段への出力タイミングとを同期させることが可能であるので、上述した特許文献1に開示されている技術のように、ハードディスク及びメインメモリなどとは別途にイメージメモリを備える必要がないと共に、輪郭指定回路及びLUTなども必要ない。従って、装置の構成が複雑化することを防止できると共に、コストアップを回避できる。   In the present invention, when synthesizing image data of different resolutions, the output timing to the synthesizing means of the low resolution image data subjected to the conversion processing to the high resolution, and the high timing read from the storage means. Since it is possible to synchronize the output timing of the resolution image data to the synthesizing means, an image memory is provided separately from the hard disk and the main memory, as in the technique disclosed in Patent Document 1 described above. It is not necessary, and no contour designating circuit and LUT are necessary. Therefore, it is possible to prevent the device configuration from becoming complicated and to avoid an increase in cost.

本発明にあっては、画像データが格納されたラインバッファから画像データを読み出して変換処理部へ送出する処理と、記憶手段から読み出された画像データを他のラインバッファに格納する処理とを並列に行なうことができるので、処理速度をより向上させることができる。   In the present invention, the process of reading the image data from the line buffer storing the image data and sending it to the conversion processing unit, and the process of storing the image data read from the storage means in another line buffer Since the processing can be performed in parallel, the processing speed can be further improved.

本発明にあっては、上述したように複雑な構成を備えることなく、異なる解像度の画像データに対して、画質の劣化を防止した合成処理を高速に行なうことができる構成を画像形成装置に設けることができる。従って、レイヤー分離に基づく画像圧縮技術を用いて圧縮された画像データに基づく画像を例えば記録用紙に出力する際に、画質を維持しつつ高速な処理が可能である。   In the present invention, the image forming apparatus is provided with a configuration capable of performing high-speed synthesis processing that prevents image quality deterioration on image data having different resolutions without providing a complicated configuration as described above. be able to. Therefore, when an image based on image data compressed using an image compression technique based on layer separation is output to, for example, a recording sheet, high-speed processing is possible while maintaining image quality.

以下に、本発明を実施の形態を示す図面に基づいて説明する。図1は本発明に係る画像処理装置を備える画像形成装置100の構成を示すブロック図である。画像形成装置100(例えば、デジタルカラー複合機)は、カラー画像入力装置1、カラー画像処理装置2(画像処理装置)、画像形成手段としてのカラー画像出力装置3、モデムやネットワークカードよりなる送信装置5、各種操作を行なうための操作パネル4などを備える。   Hereinafter, the present invention will be described with reference to the drawings illustrating embodiments. FIG. 1 is a block diagram illustrating a configuration of an image forming apparatus 100 including an image processing apparatus according to the present invention. An image forming apparatus 100 (for example, a digital color multifunction peripheral) includes a color image input apparatus 1, a color image processing apparatus 2 (image processing apparatus), a color image output apparatus 3 as an image forming unit, and a transmission apparatus including a modem and a network card. 5. An operation panel 4 for performing various operations is provided.

また、画像形成装置100は、ハードディスクなどの記憶手段(以下、代表してハードディスク6(図6参照)という)、メインメモリ7(図6,7参照)などを備える。なお、ハードディスク6及びメインメモリ7は、カラー画像処理装置2内に設けられていてもよいし、カラー画像処理装置2外に設けられていてもよい。   The image forming apparatus 100 also includes storage means such as a hard disk (hereinafter, representatively referred to as the hard disk 6 (see FIG. 6)), a main memory 7 (see FIGS. 6 and 7), and the like. The hard disk 6 and the main memory 7 may be provided in the color image processing apparatus 2 or may be provided outside the color image processing apparatus 2.

カラー画像入力装置1で原稿を読み取ることにより得られたRGB(R:赤、G:緑、B:青)のアナログ信号の画像データは、カラー画像処理装置2へ出力され、カラー画像処理装置2で所定の処理が行なわれ、CMYK(C:シアン、M:マゼンダ、Y:イエロー、K:黒)のデジタルカラー信号としてカラー画像出力装置3へ出力される。   Image data of RGB (R: red, G: green, B: blue) analog signals obtained by reading a document with the color image input device 1 is output to the color image processing device 2, and the color image processing device 2. Then, a predetermined process is performed and output to the color image output device 3 as a digital color signal of CMYK (C: cyan, M: magenta, Y: yellow, K: black).

カラー画像入力装置1は、例えば、CCD(Charged Coupled Device)を備えたスキャナであり、原稿画像からの反射光像をRGBのアナログ信号として読み取り、読み取ったRGB信号をカラー画像処理装置2へ出力する。なお、本実施の形態においては、カラー画像入力装置1は、画像データを例えば600dpiの解像度で読み取る。カラー画像出力装置3は、原稿画像の画像データを記録紙上に出力する電子写真方式又はインクジェット方式などのプリンタである。また、カラー画像出力装置3は、CRTディスプレイ、液晶ディスプレイなどの画像表示装置であってもよい。   The color image input device 1 is, for example, a scanner including a CCD (Charged Coupled Device), reads a reflected light image from a document image as an RGB analog signal, and outputs the read RGB signal to the color image processing device 2. . In the present embodiment, the color image input apparatus 1 reads image data with a resolution of 600 dpi, for example. The color image output device 3 is a printer such as an electrophotographic system or an inkjet system that outputs image data of a document image onto a recording sheet. The color image output device 3 may be an image display device such as a CRT display or a liquid crystal display.

カラー画像処理装置2は、A/D変換部20、シェーディング補正部21、入力階調補正部22、圧縮処理部23、領域分離処理部24、色補正部25、黒生成下色除去部26、空間フィルタ処理部27、出力階調補正部28、階調再現処理部29、展開処理部30、合成処理部31、これらのハードウェア各部の動作を制御するCPU(Central Processing Unit )などを備え、ASIC(Application Specific Integrated Circuit)などにより構成される。   The color image processing apparatus 2 includes an A / D conversion unit 20, a shading correction unit 21, an input tone correction unit 22, a compression processing unit 23, a region separation processing unit 24, a color correction unit 25, a black generation and under color removal unit 26, A spatial filter processing unit 27, an output gradation correction unit 28, a gradation reproduction processing unit 29, a development processing unit 30, a synthesis processing unit 31, a CPU (Central Processing Unit) that controls the operation of each of these hardware units, and the like. It is configured by an ASIC (Application Specific Integrated Circuit) or the like.

カラー画像入力装置1にて読み取られたアナログ信号は、圧縮処理部23による圧縮処理が行なわれる場合、カラー画像処理装置2内を、A/D変換部20、シェーディング補正部21、入力階調補正部22、圧縮処理部23の順に送られ、圧縮処理部23によって圧縮処理が施された後、圧縮画像データとしてハードディスク6に格納される。   When the analog signal read by the color image input device 1 is subjected to compression processing by the compression processing unit 23, the A / D conversion unit 20, the shading correction unit 21, and the input tone correction are performed in the color image processing device 2. Are sent in the order of the unit 22 and the compression processing unit 23, subjected to compression processing by the compression processing unit 23, and then stored in the hard disk 6 as compressed image data.

なお、カラー画像入力装置1にて読み取られたアナログ信号は、圧縮処理部23による圧縮処理が行なわれずに、カラー画像出力装置3によって出力される場合、カラー画像処理装置2内を、A/D変換部20、シェーディング補正部21、入力階調補正部22、圧縮処理部23、領域分離処理部24、色補正部25、黒生成下色除去部26、空間フィルタ処理部27、出力階調補正部28、階調再現処理部29の順に送られ、ストリームとしてカラー画像出力装置3へ出力される。   When the analog signal read by the color image input device 1 is output by the color image output device 3 without being subjected to compression processing by the compression processing unit 23, the A / D is transmitted through the color image processing device 2. Conversion unit 20, shading correction unit 21, input tone correction unit 22, compression processing unit 23, region separation processing unit 24, color correction unit 25, black generation and under color removal unit 26, spatial filter processing unit 27, output tone correction The image data is sent to the color image output device 3 as a stream.

また、圧縮処理部23によって圧縮され、ハードディスク6に格納されている画像データ(圧縮画像データ)は、カラー画像出力装置3によって出力される場合、展開処理部30、合成処理部31、領域分離処理部24、色補正部25、黒生成下色除去部26、空間フィルタ処理部27、出力階調補正部28、階調再現処理部29の順に送られ、ストリームとしてカラー画像出力装置3へ出力される。   In addition, when the image data (compressed image data) compressed by the compression processing unit 23 and stored in the hard disk 6 is output by the color image output device 3, a decompression processing unit 30, a composition processing unit 31, an area separation process Unit 24, color correction unit 25, black generation and under color removal unit 26, spatial filter processing unit 27, output gradation correction unit 28, and gradation reproduction processing unit 29 are sent in this order, and output as a stream to the color image output device 3 The

A/D(アナログ/デジタル)変換部20は、カラー画像入力装置1から入力されたRGB信号を、例えば、10ビットのデジタル信号に変換し、変換後のRGB信号をシェーディング補正部21へ出力する。   The A / D (analog / digital) converter 20 converts the RGB signal input from the color image input device 1 into, for example, a 10-bit digital signal, and outputs the converted RGB signal to the shading correction unit 21. .

シェーディング補正部21は、入力されたRGB信号に対して、カラー画像入力装置1の照明系、結像系、撮像系などで生じた各種の歪みを取り除く補正処理を行ない、補正後のRGB信号を入力階調補正部22へ出力する。   The shading correction unit 21 performs a correction process for removing various distortions generated in the illumination system, the imaging system, the imaging system, and the like of the color image input apparatus 1 on the input RGB signal, and the corrected RGB signal is converted into a corrected RGB signal. Output to the input tone correction unit 22.

入力階調補正部22は、シェーディング補正部21にて各種の歪みが取り除かれたRGB信号(RGBの反射率信号)に対して、カラーバランスを整えると同時に、濃度信号などカラー画像処理装置2に採用されている画像処理システムの扱い易い信号に変換する処理を行なう。また、入力階調補正部22は、下地濃度の除去又はコントラストなどの画質調整処理を施し、処理後のRGB信号を圧縮処理部23へ出力する。   The input tone correction unit 22 adjusts the color balance of the RGB signal (RGB reflectivity signal) from which various distortions have been removed by the shading correction unit 21 and at the same time provides the color image processing apparatus 2 with a density signal and the like. The signal is converted into a signal that can be easily handled by the image processing system employed. The input tone correction unit 22 performs image quality adjustment processing such as removal of background density or contrast, and outputs the processed RGB signal to the compression processing unit 23.

圧縮処理部23は、操作パネル4を介してユーザから指定された動作モードなどに基づくCPUからの制御に従って、入力階調補正部22から入力されたRGB信号に対して圧縮処理を行ない、得られた圧縮画像データをハードディスク6に格納する。また、圧縮処理部23は、CPUから圧縮処理の実行を指示されない場合、入力階調補正部22から入力されたRGB信号をそのまま後段の領域分離処理部24へ出力する。   The compression processing unit 23 performs a compression process on the RGB signal input from the input tone correction unit 22 in accordance with control from the CPU based on an operation mode designated by the user via the operation panel 4 and the like. The compressed image data is stored in the hard disk 6. When the CPU is not instructed to execute the compression process, the compression processing unit 23 outputs the RGB signal input from the input tone correction unit 22 to the subsequent region separation processing unit 24 as it is.

なお、圧縮処理部23が圧縮処理を行なう場合とは、例えば、操作パネル4を介してユーザからscan to e-mailモード(カラー画像入力装置1によって原稿から読み取った画像データを電子メールで送信するモード)が指定された場合、カラー画像入力装置1によって読み取られた画像データを文書ファイル(電子データ)としてハードディスク6に格納させるファイリングモードが指定された場合などがある。   Note that the case where the compression processing unit 23 performs the compression process means that, for example, the user sends a scan to e-mail mode (image data read from the document by the color image input device 1 by e-mail) via the operation panel 4. Mode) is designated, and a filing mode in which image data read by the color image input apparatus 1 is stored in the hard disk 6 as a document file (electronic data) may be designated.

ハードディスク6に格納された圧縮画像データは、例えば、操作パネル4を介してユーザからscan to e-mailモードが指定されている場合、ハードディスク6から読み出されて電子メールに添付され、設定された送信先へ送信装置5を介して送信される。また、ハードディスク6に格納された圧縮画像データは、例えば、操作パネル4を介してユーザから記録紙への画像出力が指定された場合、ハードディスク6から読み出されて展開処理部30へ出力される。   The compressed image data stored in the hard disk 6 is read from the hard disk 6 and attached to an e-mail when the scan to e-mail mode is designated by the user via the operation panel 4, for example. It is transmitted to the transmission destination via the transmission device 5. The compressed image data stored in the hard disk 6 is read from the hard disk 6 and output to the expansion processing unit 30 when, for example, an image output to a recording sheet is designated by the user via the operation panel 4. .

本実施の形態の圧縮処理部23は、レイヤー分離に基づく画像圧縮技術を用いた圧縮処理を行なうように構成されており、画像データ(RGB信号)を前景レイヤー及び背景レイヤーに分離し、それぞれのレイヤー毎に圧縮処理を行なうので、2つの圧縮画像データが生成される。なお、圧縮処理部23による圧縮処理及び圧縮処理部23のより詳細な構成については図2及び図3に基づいて後述する。   The compression processing unit 23 according to the present embodiment is configured to perform compression processing using an image compression technique based on layer separation, and separates image data (RGB signals) into a foreground layer and a background layer. Since compression processing is performed for each layer, two pieces of compressed image data are generated. Note that the compression processing performed by the compression processing unit 23 and a more detailed configuration of the compression processing unit 23 will be described later with reference to FIGS.

展開処理部30は、ハードディスク6に格納された圧縮画像データを読み出して展開処理を行ない、展開された画像データ(RGB信号)を後段の合成処理部31へ出力する。具体的には、例えば、ファイリング機能によってハードディスク6に格納されている圧縮画像データを記録紙に画像出力するために、操作パネル4を介してユーザから目的の文書ファイルが選択された場合、展開処理部30は、選択された文書ファイルをハードディスク6から読み出し、展開処理を行なった後、メインメモリ7に格納させる。なお、展開処理部30のより詳細な構成については図6に基づいて後述する。   The decompression processing unit 30 reads the compressed image data stored in the hard disk 6 and performs decompression processing, and outputs the decompressed image data (RGB signal) to the subsequent composition processing unit 31. Specifically, for example, when a target document file is selected from the user via the operation panel 4 in order to output the compressed image data stored in the hard disk 6 to the recording paper by the filing function, the expansion process is performed. The unit 30 reads the selected document file from the hard disk 6, performs expansion processing, and stores it in the main memory 7. A more detailed configuration of the expansion processing unit 30 will be described later with reference to FIG.

合成処理部31は、展開処理部30にて展開処理された解像度が異なる複数の画像データを合成する。なお、合成処理部31は、解像度が異なる画像データのうちの解像度が低い方の画像データ(以下、低解像度の画像データという)をアップサンプリングすることによって、解像度が高い方の画像データ(以下、高解像度の画像データという)の解像度(高解像度)への変換処理を行ない、高解像度へ変換された画像データと、高解像度の画像データとを同期させて合成する。合成処理部31は、合成した画像データ(RGB信号)を後段の領域分離処理部24へ出力する。なお、合成処理部31のより詳細な構成については図7に基づいて後述する。   The composition processing unit 31 synthesizes a plurality of image data having different resolutions developed by the development processing unit 30. Note that the composition processing unit 31 up-samples image data having a lower resolution among image data having different resolutions (hereinafter referred to as low-resolution image data) to thereby obtain image data having a higher resolution (hereinafter referred to as “lower-resolution image data”). Conversion processing to a resolution (high resolution) (referred to as high resolution image data) is performed, and the image data converted to high resolution and the high resolution image data are synthesized in synchronism. The synthesis processing unit 31 outputs the synthesized image data (RGB signal) to the subsequent region separation processing unit 24. A more detailed configuration of the composition processing unit 31 will be described later with reference to FIG.

領域分離処理部24は、圧縮処理部23又は合成処理部31から入力されたRGB信号に基づき、入力された画像中の各画素を、文字領域、網点領域、写真領域などの何れに属するかを判定し、各画素を分離する。領域分離処理部24は、分離結果に基づいて、各画素がどの領域に属しているかを示す領域識別信号を黒生成下色除去部26、空間フィルタ処理部27、階調再現処理部29へ出力する。また、領域分離処理部24は、入力されたRGB信号をそのまま後段の色補正部25へ出力する。   Based on the RGB signal input from the compression processing unit 23 or the composition processing unit 31, the region separation processing unit 24 belongs to each of the pixels in the input image as a character region, a dot region, a photographic region, or the like. And each pixel is separated. Based on the separation result, the region separation processing unit 24 outputs a region identification signal indicating to which region each pixel belongs to the black generation and under color removal unit 26, the spatial filter processing unit 27, and the gradation reproduction processing unit 29. To do. The region separation processing unit 24 outputs the input RGB signal as it is to the subsequent color correction unit 25.

色補正部25は、入力されたRGB信号をCMYの色空間に変換し、カラー画像出力装置3の特性に合わせて色補正を行ない、補正後のCMY信号を黒生成下色除去部26へ出力する。具体的には、色補正部25は、色再現の忠実化実現のため、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行なう。   The color correction unit 25 converts the input RGB signal into a CMY color space, performs color correction in accordance with the characteristics of the color image output device 3, and outputs the corrected CMY signal to the black generation and under color removal unit 26. To do. Specifically, the color correction unit 25 performs a process of removing color turbidity based on the spectral characteristics of CMY color materials including unnecessary absorption components in order to realize color reproduction fidelity.

黒生成下色除去部26は、領域分離処理部24から入力された領域識別信号が示す各領域に応じて、色補正部25から入力されたCMY信号に基づいて、K(黒)信号を生成する黒生成処理を行なうとともに、入力されたCMY信号からK信号を差し引いて新たなCMY信号を生成する下色除去処理を行ない、生成したCMYK信号を空間フィルタ処理部27へ出力する。   The black generation and under color removal unit 26 generates a K (black) signal based on the CMY signal input from the color correction unit 25 in accordance with each region indicated by the region identification signal input from the region separation processing unit 24. In addition, a black generation process is performed, and a KMY signal is subtracted from the input CMY signal to generate a new CMY signal. Then, the generated CMYK signal is output to the spatial filter processing unit 27.

黒生成下色除去部26における黒生成処理の一例を示す。例えば、スケルトンブラックによる黒生成を行なう処理の場合、スケルトンカーブの入出力特性をy=f(x)とし、入力されるデータをC、M、Yとし、出力されるデータをC´、M´、Y´、K´とし、UCR(Under Color Removal)率をα(0<α<1)とすると、黒生成下色除去処理により出力されるデータ夫々は、K´=f{min(C、M、Y)}、C´=C−αK´、M´=M−αK´、Y´=Y−αK´で表される。   An example of black generation processing in the black generation and under color removal unit 26 will be described. For example, in the process of generating black using skeleton black, the input / output characteristic of the skeleton curve is y = f (x), the input data is C, M, Y, and the output data is C ′, M ′. , Y ′, K ′ and the UCR (Under Color Removal) rate is α (0 <α <1), the data output by the black generation and under color removal processing is K ′ = f {min (C, M, Y)}, C ′ = C−αK ′, M ′ = M−αK ′, and Y ′ = Y−αK ′.

空間フィルタ処理部27は、黒生成下色除去部26から入力されたCMYK信号に対して、領域分離処理部24から入力された領域識別信号に基づいたデジタルフィルタによる空間フィルタ処理を行なう。これにより、画像データの空間周波数特性が補正され、カラー画像出力装置3における出力画像のぼやけ、又は粒状性劣化を防止する。例えば、空間フィルタ処理部27は、領域分離処理部24において文字領域に分離された領域を、特に黒文字又は色文字の再現性を高めるため、鮮鋭強調処理を施し高周波成分を強調する。また、空間フィルタ処理部27は、領域分離処理部24において網点領域に分離された領域を、入力網点成分を除去するためのローパス・フィルタ処理を施す。空間フィルタ処理部27は、処理後のCMYK信号を出力階調補正部28へ出力する。   The spatial filter processing unit 27 performs spatial filter processing on the CMYK signal input from the black generation and under color removal unit 26 using a digital filter based on the region identification signal input from the region separation processing unit 24. As a result, the spatial frequency characteristics of the image data are corrected, and blurring of the output image in the color image output device 3 or deterioration of graininess is prevented. For example, the spatial filter processing unit 27 performs sharp enhancement processing on the region separated into character regions by the region separation processing unit 24 to enhance the reproducibility of black characters or color characters, and emphasizes high frequency components. The spatial filter processing unit 27 performs low-pass filter processing for removing the input halftone component on the region separated into the halftone dot region by the region separation processing unit 24. The spatial filter processing unit 27 outputs the processed CMYK signal to the output tone correction unit 28.

出力階調補正部28は、空間フィルタ処理部27から入力されたCMYK信号に対して、カラー画像出力装置3の特性値である網点面積率に変換する出力階調補正処理を行ない、出力階調補正処理後のCMYK信号を階調再現処理部29へ出力する。   The output gradation correction unit 28 performs an output gradation correction process for converting the CMYK signal input from the spatial filter processing unit 27 into a halftone dot area ratio that is a characteristic value of the color image output device 3, The CMYK signal after the tone correction processing is output to the gradation reproduction processing unit 29.

階調再現処理部29は、領域分離処理部24から入力された領域識別信号に基づいて、出力階調補正部28から入力されたCMYK信号に対して所定の処理を行なう。例えば、階調再現処理部29は、文字領域に分離された領域を、特に黒文字又は色文字の再現性を高めるため、カラー画像出力装置3における高周波成分の再現に適するように二値化処理又は多値化処理を行なう。   The gradation reproduction processing unit 29 performs predetermined processing on the CMYK signal input from the output gradation correction unit 28 based on the region identification signal input from the region separation processing unit 24. For example, the tone reproduction processing unit 29 performs binarization processing or the like so as to be suitable for reproduction of high-frequency components in the color image output device 3 in order to improve the reproducibility of the area separated into character areas, particularly black characters or color characters. Multi-value processing is performed.

また、階調再現処理部29は、領域分離処理部24において網点領域に分離された領域を、最終的に画像を画素に分離して、それぞれの階調を再現できるように階調再現処理(中間調生成)を行なう。さらに、階調再現処理部29は、領域分離処理部24において写真領域に分離された領域を、カラー画像出力装置3における階調再現性に適するように二値化処理又は多値化処理を行なう。   In addition, the gradation reproduction processing unit 29 performs gradation reproduction processing so that the region separated by the halftone dot region in the region separation processing unit 24 can be finally separated into pixels and the respective gradations can be reproduced. (Halftone generation) is performed. Further, the gradation reproduction processing unit 29 performs binarization processing or multi-value quantization processing on the region separated into the photographic regions by the region separation processing unit 24 so as to be suitable for the gradation reproducibility in the color image output device 3. .

カラー画像処理装置2は、階調再現処理部29で処理された画像データ(CMYK信号)を記憶部(不図示)に一旦記憶し、画像形成をする所定のタイミングで記憶部に記憶した画像データを読み出し、読み出した画像データをカラー画像出力装置3へ出力する。これらの制御は、例えば、CPU(不図示)により行なわれる。   The color image processing apparatus 2 temporarily stores the image data (CMYK signal) processed by the gradation reproduction processing unit 29 in a storage unit (not shown), and stores the image data in the storage unit at a predetermined timing for image formation. And the read image data is output to the color image output device 3. These controls are performed, for example, by a CPU (not shown).

操作パネル4は、例えば、液晶ディスプレイなどで構成される表示部と、画像形成装置100の動作モードを設定する設定ボタン及びテンキーなどにより構成される操作部とを備え、操作パネル4より入力された情報に基づいてカラー画像入力装置1、カラー画像処理装置2、カラー画像出力装置3の動作が制御される。   The operation panel 4 includes, for example, a display unit configured with a liquid crystal display and the like, and an operation unit configured with a setting button and a numeric keypad for setting the operation mode of the image forming apparatus 100. Based on the information, the operations of the color image input device 1, the color image processing device 2, and the color image output device 3 are controlled.

本実施の形態に係る画像形成装置100は、カラー画像入力装置1が原稿を読み取って取得した画像データを、圧縮処理部23にてMRCに代表されるレイヤー分離に基づく画像圧縮処理を行なうことによって、高圧縮率で圧縮された圧縮画像データを生成することができるようにしてある。これにより、文書ファイルとして蓄積する際の画像データのデータ量、及び電子メールに添付して送信する際の画像データのデータ量を削減することができる。また、本実施の形態に係る画像形成装置100は、このような画像圧縮処理によって圧縮された圧縮画像データを復元する際に、圧縮画像データを展開することによって得られる異なる解像度の画像データを、画質の劣化を防止しつつ高速に合成することができるようにしてある。   The image forming apparatus 100 according to the present embodiment performs image compression processing based on layer separation typified by MRC on the image data acquired by the color image input device 1 reading a document. Compressed image data compressed at a high compression rate can be generated. As a result, it is possible to reduce the amount of image data to be stored as a document file and the amount of image data to be transmitted by being attached to an e-mail. Further, when the image forming apparatus 100 according to the present embodiment restores compressed image data compressed by such an image compression process, image data having different resolutions obtained by decompressing the compressed image data, The image can be synthesized at high speed while preventing deterioration of the image quality.

以下に、画像データをレイヤーに分離し、それぞれのレイヤーに対して行なう圧縮処理について説明する。具体的には、圧縮処理部23が行なう圧縮処理の詳細について説明する。まず、MRCに代表されるレイヤー分離に基づく画像圧縮処理について説明する。図2はレイヤー分離に基づく画像圧縮処理を説明するための模式図である。   Hereinafter, a description will be given of the compression processing performed for separating image data into layers and performing the respective layers. Specifically, details of the compression processing performed by the compression processing unit 23 will be described. First, image compression processing based on layer separation represented by MRC will be described. FIG. 2 is a schematic diagram for explaining image compression processing based on layer separation.

図2(a)は圧縮処理の処理対象の画像データ(入力画像データという)を、図2(b)は入力画像データにおける前景レイヤーを、図2(c)は入力画像データにおける背景レイヤーを、図2(d)は前景レイヤーにおける前景マスクを、図2(e)は前景レイヤーにおける前景色情報をそれぞれ示している。   2A shows image data to be processed (referred to as input image data), FIG. 2B shows a foreground layer in the input image data, FIG. 2C shows a background layer in the input image data, 2D shows the foreground mask in the foreground layer, and FIG. 2E shows the foreground information in the foreground layer.

図2(a)に示す入力画像データにおいて、M1は第1色の文字画素を、M2は第2色の文字画素を、M3は第3色の文字画素を、Gは画像コンテンツをそれぞれ示している。なお、文字画素M1の背景は無地(白色)とし、文字画素M2,M3の背景は第4色とする。また、第1色、第2色、第3色、第4色は任意の色である。   In the input image data shown in FIG. 2A, M1 represents a first color character pixel, M2 represents a second color character pixel, M3 represents a third color character pixel, and G represents an image content. Yes. The background of the character pixel M1 is plain (white), and the background of the character pixels M2 and M3 is the fourth color. The first color, the second color, the third color, and the fourth color are arbitrary colors.

図2(a)に示す入力画像データは、図2(b)に示す前景レイヤーと、図2(c)に示す背景レイヤーとに分離させることが可能であり、図2(b)に示す前景レイヤーは、図2(d)に示す前景マスクと、図2(e)に示す前景色情報とに分離させることが可能である。   The input image data shown in FIG. 2 (a) can be separated into a foreground layer shown in FIG. 2 (b) and a background layer shown in FIG. 2 (c), and the foreground shown in FIG. 2 (b). The layer can be separated into the foreground mask shown in FIG. 2D and the foreground information shown in FIG.

前景レイヤーは入力画像データ中の文字画素を表わすレイヤーであり、図2(a)に示す入力画像データにおける文字画素M1,M2,M3を含む。背景レイヤーは入力画像データ中の前景レイヤー以外、例えば画像コンテンツを表わすレイヤーであり、図2(a)に示す入力画像データにおける文字画素M2,M3の背景領域B及び画像コンテンツGを含む。   The foreground layer is a layer representing character pixels in the input image data, and includes character pixels M1, M2, and M3 in the input image data shown in FIG. The background layer is a layer representing, for example, image content other than the foreground layer in the input image data, and includes the background region B of the character pixels M2 and M3 and the image content G in the input image data shown in FIG.

前景マスクは、図2(b)に示す前景レイヤーに対して、所定値よりも大きい画素値を0に、小さい画素値を1にする2値化処理を行なったものである。このような2値化処理を行なうことにより、図2(d)に示すように、文字画素M1,M2,M3の画素値が0で、それ以外(背景)の画素値が1となる前景マスクが得られる。前景色情報は、図2(b)に示す前景レイヤーにおける各文字画素M1,M2,M3の色情報を示す。   The foreground mask is obtained by binarizing the foreground layer shown in FIG. 2B so that a pixel value larger than a predetermined value becomes 0 and a smaller pixel value becomes 1. By performing such binarization processing, as shown in FIG. 2D, the foreground mask in which the pixel values of the character pixels M1, M2, and M3 are 0 and the pixel values of the other (background) are 1. Is obtained. The foreground color information indicates the color information of each character pixel M1, M2, M3 in the foreground layer shown in FIG.

本実施の形態の圧縮処理部23は、入力画像データを前景レイヤー及び背景レイヤーに分離する。圧縮処理部23は、前景レイヤーの画素色をインデックス化し、最終的にJBIG、MMR、LZWに代表される可逆圧縮技術を用いて圧縮する。また、圧縮処理部23は、背景レイヤーをJPEGに代表される非可逆圧縮技術を用いて圧縮する。なお、圧縮処理部23は、前景レイヤーについては、前景レイヤーから前景マスク及び前景色情報を生成し、前景マスクを可逆圧縮技術によって圧縮し、前景色情報が示す各画素(文字画素)の色情報(具体的には、後述する前景インデックスカラーテーブル)を可逆圧縮技術又は非可逆圧縮技術によって圧縮する。これにより、マルチビット(例えば1024階調等の多階調)の前景レイヤーを直接圧縮するのに比べて、圧縮率を向上させることができる。   The compression processing unit 23 according to the present embodiment separates input image data into a foreground layer and a background layer. The compression processing unit 23 indexes the pixel colors of the foreground layer and finally compresses them using a lossless compression technique typified by JBIG, MMR, and LZW. The compression processing unit 23 compresses the background layer using a lossy compression technique represented by JPEG. For the foreground layer, the compression processing unit 23 generates foreground mask and foreground information from the foreground layer, compresses the foreground mask using a lossless compression technique, and color information of each pixel (character pixel) indicated by the foreground information (Specifically, the foreground index color table described later) is compressed by a lossless compression technique or a lossy compression technique. As a result, the compression rate can be improved as compared with the case of directly compressing the multi-bit (for example, multi-gradation such as 1024 gradations) foreground layer.

以下に、圧縮処理部23の詳細な構成について説明する。図3は圧縮処理部23の構成を示すブロック図である。圧縮処理部23は、前景マスク生成処理部231、前景色インデックス化処理部232、背景レイヤー生成処理部233、2値画像生成処理部234、圧縮処理実行部235などを備えている。   The detailed configuration of the compression processing unit 23 will be described below. FIG. 3 is a block diagram showing the configuration of the compression processing unit 23. The compression processing unit 23 includes a foreground mask generation processing unit 231, a foreground indexing processing unit 232, a background layer generation processing unit 233, a binary image generation processing unit 234, a compression processing execution unit 235, and the like.

前景マスク生成処理部231は、入力階調補正部22から入力されたRGB信号(入力画像データ)から、文字画素を表わす前景マスクを抽出する。前景マスクの抽出処理としては、例えば、特許第3779741号に記載されている方法を用いることができる。具体的には、入力された画像データの輝度値(画素値)に対して微分処理を適用して、輝度が明るく変化するエッジ部位と、輝度が暗く変化するエッジ部位とを検知し、それぞれのエッジ部位に基づいて文字画素を抽出する。   The foreground mask generation processing unit 231 extracts a foreground mask representing character pixels from the RGB signals (input image data) input from the input tone correction unit 22. As the foreground mask extraction process, for example, a method described in Japanese Patent No. 3777741 can be used. Specifically, differential processing is applied to the luminance value (pixel value) of the input image data to detect an edge portion where the luminance changes brightly and an edge portion where the luminance changes darkly. Character pixels are extracted based on the edge part.

詳細には、正方向の微分値が出現してから、負方向の微分値が出現するまでの範囲の画素を文字画素とし、この文字画素を抽出する。前景マスク生成処理部231は、抽出した文字画素を2値化して前景マスクを生成し、生成した前景マスクと、入力階調補正部22から入力された画像データ(入力画像データ)とを後段の前景色インデックス化処理部232へ出力する。   Specifically, a pixel in a range from the appearance of a positive differential value to the appearance of a negative differential value is defined as a character pixel, and the character pixel is extracted. The foreground mask generation processing unit 231 generates a foreground mask by binarizing the extracted character pixels, and the generated foreground mask and the image data (input image data) input from the input tone correction unit 22 are in the subsequent stage. The data is output to the foreground color indexing processing unit 232.

前景色インデックス化処理部232は、前景マスク生成処理部231から入力された入力画像データ及び前景マスクに基づいて、入力画像データ中の文字画素(前景画素ともいう)の色をインデックス化し、各色毎のインデックス画像データを表わす前景レイヤーと、図4に示すような前景インデックスカラーテーブルとを生成する。前景インデックスカラーテーブルには、前景レイヤーに含まれる各画素(文字画素)の色(文字色)と、それぞれの文字色の領域を示す領域情報とが登録される。   The foreground indexing processing unit 232 indexes the colors of character pixels (also referred to as foreground pixels) in the input image data based on the input image data and the foreground mask input from the foreground mask generation processing unit 231 for each color. A foreground layer representing the index image data and a foreground index color table as shown in FIG. 4 are generated. In the foreground index color table, the color (character color) of each pixel (character pixel) included in the foreground layer and area information indicating the area of each character color are registered.

図4は前景インデックスカラーテーブルの登録内容を示す模式図である。図4に示すように、前景インデックスカラーテーブルには、インデックス化によって得られた各色のインデックス画像データ毎に割り当てられたインデックスID、各文字色の領域を特定する座標値、各文字色を表わすRGBの値等が登録されている。なお、各文字色の領域を特定する座標値は、例えば、図2(a)に示した入力画像データの左上の座標を基準位置(0,0)とし、矢符xで示す方向をx座標軸とし、矢符yで示す方向をy座標軸とした場合に、x座標及びy座標が共に最小値となる最小座標値(minx,miny)と、x座標及びy座標が共に最大値となる最大座標値(maxx,maxy)とで示される。   FIG. 4 is a schematic diagram showing the registration contents of the foreground index color table. As shown in FIG. 4, the foreground index color table includes an index ID assigned to each index image data of each color obtained by indexing, a coordinate value for specifying a region of each character color, and RGB representing each character color. Is registered. Note that the coordinate values that specify the character color areas are, for example, the upper left coordinates of the input image data shown in FIG. 2A as the reference position (0, 0), and the direction indicated by the arrow x is the x coordinate axis. When the direction indicated by the arrow y is the y coordinate axis, the minimum coordinate value (minx, miny) where the x coordinate and y coordinate are both the minimum value, and the maximum coordinate where both the x coordinate and y coordinate are the maximum value It is indicated by the values (maxx, maxy).

前景色インデックス化処理部232は、前景画素について、図4に示すような前景インデックスカラーテーブルを更新していくことで、最終的に前景レイヤーのインデックス化を行なう。なお、前景色インデックス化処理部232は、各前景画素(前景レイヤー中の文字画素)について、各前景画素の画素色が既に前景インデックスカラーテーブルに登録されていると判断した場合、前景インデックスカラーテーブル内で、最も近い色のインデックスIDを割り当てる。前景色インデックス化処理部232は、前景画素の画素色が前景インデックスカラーテーブルに登録されていないと判断した場合、インデックスIDを新規に割り当て、前景インデックスカラーテーブルに、割り当てたインデックスID、座標値、RGB値を登録する。   The foreground indexing processing unit 232 finally indexes the foreground layer by updating the foreground index color table as shown in FIG. 4 for the foreground pixels. When the foreground indexing processing unit 232 determines that the pixel color of each foreground pixel has already been registered in the foreground index color table for each foreground pixel (character pixel in the foreground layer), the foreground index color table. The index ID of the closest color is assigned. When the foreground indexing processing unit 232 determines that the pixel color of the foreground pixel is not registered in the foreground index color table, the foreground index index processing unit 232 newly assigns an index ID, and assigns the index ID, coordinate value, Register RGB values.

前景色インデックス化処理部232は、このような処理を繰り返すことによって前景画素をインデックス化する。前景色インデックス化処理部232は、生成した前景レイヤー及び前景インデックスカラーテーブルと、前景マスク生成処理部231から入力された入力画像データとを後段の背景レイヤー生成処理部233へ出力する。   The foreground color indexing processing unit 232 indexes the foreground pixels by repeating such processing. The foreground indexing processing unit 232 outputs the generated foreground layer and foreground index color table and the input image data input from the foreground mask generation processing unit 231 to the subsequent background layer generation processing unit 233.

背景レイヤー生成処理部233は、前景色インデックス化処理部232から入力された入力画像データから前景画素を取り除いて背景レイヤーを生成する。背景レイヤー生成処理部233は、一般的に背景レイヤーの圧縮率を向上させるために、取り除いた前景画素の箇所を、前景画素の周辺の背景レイヤーの画素を用いて穴埋め処理する。具体的には、背景レイヤー生成処理部233は、入力画像データにおいて、取り除いた前景画素の周辺の画素(背景画素)を参照し、その背景画素の平均値を用いて、取り除いた前景画素の箇所を穴埋めして背景レイヤーを生成する。   The background layer generation processing unit 233 generates a background layer by removing the foreground pixels from the input image data input from the foreground color indexing processing unit 232. In general, the background layer generation processing unit 233 performs a filling process on the removed foreground pixels using the background layer pixels around the foreground pixels in order to improve the compression ratio of the background layer. Specifically, the background layer generation processing unit 233 refers to a pixel (background pixel) around the removed foreground pixel in the input image data, and uses the average value of the background pixel to determine the location of the removed foreground pixel. To create a background layer.

また、取り除いた前景画素の近傍(周辺)に背景画素が存在しない場合、例えば、参照している範囲(例えば5×5画素からなる領域)内に背景画素が存在しない場合、既に穴埋め処理を行なった結果を参照して処理を行なう。具体的には、穴埋めを行なう画素に対して、この画素の左隣の画素又は上隣の画素が既に穴埋め処理によって穴埋めされた画素である場合であっても、この左隣の画素又は上隣の画素を用いて穴埋めしてもよい。また、この左隣の画素又は上隣の画素の平均値を用いて穴埋めしてもよい。   In addition, when no background pixel exists in the vicinity (periphery) of the removed foreground pixel, for example, when no background pixel exists in a reference range (for example, an area composed of 5 × 5 pixels), the filling process is already performed. Processing is performed with reference to the result. Specifically, for the pixel to be filled, even if the pixel on the left side or the pixel on the upper side of this pixel has already been filled in by the hole filling process, Alternatively, the pixels may be used to fill the holes. Alternatively, filling may be performed using the average value of the left adjacent pixel or the upper adjacent pixel.

また、背景レイヤー生成処理部233は、穴埋め処理を実行して得られた背景レイヤーを、例えば150dpiに低解像度化する。低解像度化を行なう方法としては、ニアレストネイバー法、バイリニア法、バイキュービック法などの補間方法を用いることができる。ニアレストネイバー法は、補間する画素(補間画素)に一番近い既存画素の画素値、又は補間画素に対して所定の位置関係にある既存画素の画素値を補間画素の画素値とする方法である。バイリニア法は、補間画素を囲む4点の既存画素の画素値に、補間画素からの距離に比例した値を重み付けし、得られた値の平均値を補間画素の画素値とする方法である。バイキュービック法は、補間画素を囲む4点の既存画素に、それらを含む12点の既存画素を加えた16点の既存画素の画素値に基づいて算出した値を補間画素の画素値とする方法である。   Also, the background layer generation processing unit 233 reduces the resolution of the background layer obtained by executing the hole filling process to, for example, 150 dpi. As a method for reducing the resolution, an interpolation method such as a nearest neighbor method, a bilinear method, or a bicubic method can be used. The nearest neighbor method is a method in which a pixel value of an existing pixel closest to a pixel to be interpolated (interpolated pixel) or a pixel value of an existing pixel having a predetermined positional relationship with respect to the interpolated pixel is used as the pixel value of the interpolated pixel. is there. The bilinear method is a method in which the pixel values of four existing pixels surrounding the interpolation pixel are weighted with values proportional to the distance from the interpolation pixel, and the average value of the obtained values is used as the pixel value of the interpolation pixel. In the bicubic method, a value calculated based on pixel values of 16 existing pixels obtained by adding 12 existing pixels including them to 4 existing pixels surrounding the interpolation pixel is used as a pixel value of the interpolation pixel. It is.

背景レイヤー生成処理部233は、上述したように入力画像データから前景画素を取り除き、穴埋め処理し、低解像化して得られた背景レイヤーと、前景色インデックス化処理部232から入力された前景レイヤー及び前景インデックスカラーテーブルとを後段の2値画像生成処理部234へ出力する。   As described above, the background layer generation processing unit 233 removes the foreground pixels from the input image data, performs the hole filling process, and reduces the resolution, and the foreground layer input from the foreground indexing processing unit 232 The foreground index color table and the foreground index color table are output to the subsequent binary image generation processing unit 234.

2値画像生成処理部234は、背景レイヤー生成処理部233から入力された前景レイヤー及び前景インデックスカラーテーブルを用いて、前景レイヤーに含まれる各インデックス画像データに対して2値化処理を行ない、生成した2値の前景レイヤー、背景レイヤー生成処理部233から入力された前景インデックスカラーテーブル及び背景レイヤーを後段の圧縮処理実行部235へ出力する。   The binary image generation processing unit 234 performs binarization processing on each index image data included in the foreground layer using the foreground layer and the foreground index color table input from the background layer generation processing unit 233, and generates The foreground index color table and background layer input from the binary foreground layer and background layer generation processing unit 233 are output to the subsequent compression processing execution unit 235.

圧縮処理実行部235は、2値画像生成処理部234から入力された前景レイヤー、前景インデックスカラーテーブル及び背景レイヤーのそれぞれに応じた圧縮処理を実行する。上述した通り、圧縮処理実行部235は、前景レイヤー及び前景インデックスカラーテーブルに対してはJBIG、MMR、LZWに代表される可逆圧縮技術(以下、代表してMMRとする)を用いた圧縮処理を実行する。また、圧縮処理実行部235は、背景レイヤーに対してはJPEGに代表される非可逆圧縮技術を用いた圧縮処理を実行する。   The compression processing execution unit 235 executes compression processing corresponding to each of the foreground layer, the foreground index color table, and the background layer input from the binary image generation processing unit 234. As described above, the compression processing execution unit 235 performs compression processing using a lossless compression technique represented by JBIG, MMR, and LZW (hereinafter referred to as MMR) for the foreground layer and the foreground index color table. Execute. The compression processing execution unit 235 executes compression processing using a lossy compression technique typified by JPEG for the background layer.

このように、圧縮処理実行部235は、図2(b)に示したマルチビットの前景レイヤーを、図2(d)に示した2値のデータである前景マスクと、図2(e)に示した1つ以上の文字色に関する色情報(具体的には前景インデックスカラーテーブル)とに分解して圧縮することにより、圧縮率をより向上させることができる。   In this way, the compression processing execution unit 235 converts the multi-bit foreground layer shown in FIG. 2B into the foreground mask which is binary data shown in FIG. The compression ratio can be further improved by decomposing and compressing the color information (specifically, foreground index color table) relating to one or more of the character colors shown.

圧縮処理実行部235は、前景レイヤー、前景インデックスカラーテーブル及び背景レイヤーのそれぞれに対して適切な圧縮処理を実行して得られた圧縮画像データをそれぞれ関連付けて、ハードディスク6に格納させる。圧縮処理実行部235は、例えば、1枚の画像データにおける前景レイヤー、前景インデックスカラーテーブル及び背景レイヤーの圧縮画像データに対して、一部が共通し、また、前景レイヤー、前景インデックスカラーテーブル及び背景レイヤーの区別が付くようなファイルネームを付加してハードディスク6に格納させる。   The compression processing execution unit 235 associates compressed image data obtained by executing appropriate compression processing for each of the foreground layer, the foreground index color table, and the background layer, and stores them in the hard disk 6. For example, the compression processing execution unit 235 is partially common to the compressed image data of the foreground layer, the foreground index color table, and the background layer in one piece of image data, and the foreground layer, the foreground index color table, and the background. A file name that distinguishes the layers is added and stored in the hard disk 6.

次に、カラー画像処理装置2の動作について説明する。図5は圧縮処理部23による圧縮処理の手順を示すフローチャートである。なお、圧縮処理は、圧縮処理部23などの専用のハードウェア回路で構成するだけでなく、CPU、RAM、ROMなどを備えたパーソナルコンピュータに、圧縮処理の手順を定めたコンピュータプログラムをロードすることによりCPU(いずれも不図示)で実行させることにより行なうこともできる。なお、以下の説明では、カラー画像処理装置2の圧縮処理部23を「処理部」という。   Next, the operation of the color image processing apparatus 2 will be described. FIG. 5 is a flowchart showing a procedure of compression processing by the compression processing unit 23. The compression process is not only configured by a dedicated hardware circuit such as the compression processing unit 23, but a computer program that defines the procedure of the compression process is loaded into a personal computer including a CPU, a RAM, a ROM, and the like. This can also be performed by a CPU (both not shown). In the following description, the compression processing unit 23 of the color image processing apparatus 2 is referred to as a “processing unit”.

カラー画像入力装置1が原稿を読み取って取得した画像データは、カラー画像処理装置2へ送出され、カラー画像処理装置2が画像データを取得した場合、A/D変換部20、シェーディング補正部21及び入力階調補正部22が、取得した画像データに対してそれぞれの処理を行ない、処理後の画像データを後段の圧縮処理部23へ出力する。   Image data acquired by the color image input device 1 reading a document is sent to the color image processing device 2, and when the color image processing device 2 acquires image data, the A / D conversion unit 20, the shading correction unit 21, and The input tone correction unit 22 performs each process on the acquired image data, and outputs the processed image data to the subsequent compression processing unit 23.

処理部は、入力階調補正部22から取得した画像データ(RGB信号)から文字画素を抽出し、抽出した文字画素を2値化して前景マスクを生成する(S1)。処理部は、入力階調補正部22から取得した画像データと前景マスクとに基づいて、画像データ中の文字画素(前景画素)の色をインデックス化し(S2)、インデックス画像データを表わす前景レイヤーを生成すると共に(S3)、前景インデックスカラーテーブルを生成する(S4)。   The processing unit extracts character pixels from the image data (RGB signal) acquired from the input tone correction unit 22, and binarizes the extracted character pixels to generate a foreground mask (S1). The processing unit indexes the color of the character pixel (foreground pixel) in the image data based on the image data acquired from the input tone correction unit 22 and the foreground mask (S2), and sets the foreground layer representing the index image data. The foreground index color table is generated (S4).

処理部は、入力階調補正部22から取得した画像データから前景画素を取り除いて背景レイヤーを生成し(S5)、画像データから取り除いた前景画素の箇所を、前景画素の周辺の背景レイヤーの画素を用いて穴埋め処理する(S6)。処理部は、穴埋め処理した背景レイヤーを低解像度化する(S7)。処理部は、上述したように生成した前景レイヤー(インデックス画像データ)に対して2値化処理を行ない、2値の前景レイヤーを生成する(S8)。   The processing unit removes the foreground pixels from the image data acquired from the input tone correction unit 22 to generate a background layer (S5), and sets the foreground pixels removed from the image data as pixels of the background layer around the foreground pixels. Is used to fill the hole (S6). The processing unit lowers the resolution of the background layer subjected to the hole filling process (S7). The processing unit performs a binarization process on the foreground layer (index image data) generated as described above to generate a binary foreground layer (S8).

処理部は、上述したように生成した前景レイヤー、前景インデックスカラーテーブル及び背景レイヤーに対してそれぞれ適切な圧縮処理を実行し(S9)、得られた圧縮画像データを関連付けてハードディスク6に格納させる。   The processing unit executes appropriate compression processing on the foreground layer, the foreground index color table, and the background layer generated as described above (S9), and associates the obtained compressed image data with each other and stores them in the hard disk 6.

上述したように本実施の形態では、画像データを前景レイヤー及び背景レイヤーに分離し、それぞれのレイヤーに最適な圧縮処理によって圧縮することによって、画像データ全体に対する圧縮率を向上させることができる。また、本実施の形態では、前景レイヤーを更に前景マスク及び前景画素の色情報に分離して圧縮することによって、前景レイヤーを直接圧縮するのに比べて、圧縮率をより向上させることができる。   As described above, in the present embodiment, the image data is separated into the foreground layer and the background layer, and compressed by the compression process optimal for each layer, thereby improving the compression ratio for the entire image data. Further, in the present embodiment, the foreground layer is further separated into the foreground mask and the color information of the foreground pixels and compressed, so that the compression rate can be further improved as compared with the case where the foreground layer is directly compressed.

以下に、上述した圧縮処理部23による処理によって圧縮された圧縮画像データを展開する処理、展開することによって得られる異なる解像度の画像データを合成する処理について説明する。具体的には、展開処理部30が行なう展開処理及び合成処理部31が行なう合成処理の詳細について説明する。なお、以下では、圧縮処理部23は、前景レイヤーに対してMMRによる圧縮処理を、背景レイヤーに対してJPEGによる圧縮処理を行なったとして説明する。   In the following, processing for expanding compressed image data compressed by the processing by the compression processing unit 23 described above, and processing for combining image data of different resolutions obtained by the expansion will be described. Specifically, details of the unfolding process performed by the unfolding processing unit 30 and the combining process performed by the combining processing unit 31 will be described. In the following description, it is assumed that the compression processing unit 23 performs MMR compression processing on the foreground layer and JPEG compression processing on the background layer.

まず、展開処理部30が行なう展開処理について説明する。図6は展開処理部30の構成を示すブロック図である。展開処理部30は、MMRデコーダ301、MMRデコーダDMA(Direct Memory Access)302、JPEGデコーダ303、JPEGデコーダDMA304などを備えている。展開処理部30は、上述したように圧縮処理部23によって圧縮されてハードディスク6に格納された圧縮画像データをメインメモリ7上に展開する。なお、前景レイヤーを圧縮した圧縮画像データをMMR画像データ61と呼び、背景レイヤーを圧縮した圧縮画像データをJPEG画像データ62と呼ぶ。   First, the expansion process performed by the expansion processing unit 30 will be described. FIG. 6 is a block diagram illustrating a configuration of the expansion processing unit 30. The expansion processing unit 30 includes an MMR decoder 301, an MMR decoder DMA (Direct Memory Access) 302, a JPEG decoder 303, a JPEG decoder DMA 304, and the like. The expansion processing unit 30 expands the compressed image data compressed by the compression processing unit 23 and stored in the hard disk 6 on the main memory 7 as described above. The compressed image data obtained by compressing the foreground layer is referred to as MMR image data 61, and the compressed image data obtained by compressing the background layer is referred to as JPEG image data 62.

MMRデコーダ301は、ハードディスク6に格納されたMMR画像データ61を展開する。また、MMRデコーダ301は、圧縮された前景インデックスカラーテーブルを展開し、得られた前景インデックスカラーテーブルに登録された各インデックス画像データの領域情報を、前景レイヤー71をメインメモリ7上に書き込む際のアドレス(座標)に変換してMMRデコーダDMA302のレジスタに設定すると共に、前景インデックスカラーテーブルに登録された各インデックス画像データの色情報を、前景レイヤー71をメインメモリ7上に書き込む際の色として設定する。   The MMR decoder 301 expands the MMR image data 61 stored in the hard disk 6. The MMR decoder 301 expands the compressed foreground index color table, and writes the area information of each index image data registered in the obtained foreground index color table to the foreground layer 71 on the main memory 7. It is converted into an address (coordinate) and set in the register of the MMR decoder DMA302, and color information of each index image data registered in the foreground index color table is set as a color when the foreground layer 71 is written on the main memory 7. To do.

MMRデコーダDMA302は、MMRデコーダ301によって設定されたアドレス及び色に基づいて、MMRデコーダ301によって展開された前景レイヤー71を順次メインメモリ7に書き込む。MMRデコーダ301及びMMRデコーダDMA302は、このような処理を前景インデックスカラーテーブルに登録してあるインデックス画像データの数だけ繰り返すことによって、1ページ分の前景レイヤー71の画像データをメインメモリ7上に展開することができる。これにより、メインメモリ7上には、圧縮処理部23によって圧縮処理される前の前景レイヤーと同様の前景レイヤー71が書き込まれる。   The MMR decoder DMA 302 sequentially writes the foreground layer 71 developed by the MMR decoder 301 into the main memory 7 based on the address and color set by the MMR decoder 301. The MMR decoder 301 and the MMR decoder DMA 302 expand the image data of the foreground layer 71 for one page on the main memory 7 by repeating such processing for the number of index image data registered in the foreground index color table. can do. As a result, a foreground layer 71 similar to the foreground layer before being compressed by the compression processing unit 23 is written on the main memory 7.

なお、図6では、前景インデックスカラーテーブルが直接MMRデコーダDMA302へ入力されている構成を図示しているが、本実施の形態の圧縮処理部23は、前景インデックスカラーテーブルもMMRで圧縮するので、実際には、前景インデックスカラーテーブルはMMRデコーダ301によって展開された後、MMRデコーダDMA302へ送出される。   FIG. 6 illustrates a configuration in which the foreground index color table is directly input to the MMR decoder DMA302, but the compression processing unit 23 of the present embodiment also compresses the foreground index color table with MMR. Actually, the foreground index color table is developed by the MMR decoder 301 and then sent to the MMR decoder DMA 302.

JPEGデコーダ303は、ハードディスク6に格納されたJPEG画像データ62を展開し、JPEGデコーダDMA304は、JPEGデコーダ303によって展開された背景レイヤー72を順次メインメモリ7に書き込む。なお、図6では、メインメモリ7に展開された前景レイヤー71は例えば300dpiの解像度であり、メインメモリ7に展開された背景レイヤー72は例えば75dpiであり、背景レイヤー72は前景レイヤー71よりも低解像度である。   The JPEG decoder 303 expands the JPEG image data 62 stored in the hard disk 6, and the JPEG decoder DMA 304 sequentially writes the background layer 72 expanded by the JPEG decoder 303 into the main memory 7. In FIG. 6, the foreground layer 71 expanded in the main memory 7 has a resolution of, for example, 300 dpi, the background layer 72 expanded in the main memory 7 is, for example, 75 dpi, and the background layer 72 is lower than the foreground layer 71. Resolution.

次に、合成処理部31が行なう合成処理について説明する。図7は合成処理部31の構成を示すブロック図である。合成処理部31は、合成回路310、高解像度ライン用DMA311、遅延回路312、低解像度ライン用DMA313、アップサンプリングモジュール314などを備えている。合成処理部31は、上述したように展開処理部30によってメインメモリ7(記憶手段)上に展開された解像度の異なる前景レイヤー71及び背景レイヤー72を合成する。なお、合成された画像データ73はメインメモリ7に格納される。   Next, the synthesis process performed by the synthesis processing unit 31 will be described. FIG. 7 is a block diagram showing a configuration of the composition processing unit 31. The synthesis processing unit 31 includes a synthesis circuit 310, a high resolution line DMA 311, a delay circuit 312, a low resolution line DMA 313, an upsampling module 314, and the like. As described above, the composition processing unit 31 combines the foreground layer 71 and the background layer 72 having different resolutions developed on the main memory 7 (storage unit) by the development processing unit 30. Note that the synthesized image data 73 is stored in the main memory 7.

高解像度ライン用DMA311及び遅延回路312は、高解像度(第1解像度)の画像データである前景レイヤー71に対してライン単位で処理を行なう。高解像度ライン用DMA311は、メインメモリ7から前景レイヤー71を読み出す第1読出部であり、所定のタイミングで読み出した前景レイヤー71を順次遅延回路312へ送出する。遅延回路312は、高解像度ライン用DMA311から取得した前景レイヤー71を所定時間保持した後、合成回路310へ送出する。   The high-resolution line DMA 311 and the delay circuit 312 process the foreground layer 71, which is high-resolution (first resolution) image data, in units of lines. The high-resolution line DMA 311 is a first reading unit that reads the foreground layer 71 from the main memory 7, and sequentially sends the foreground layer 71 read at a predetermined timing to the delay circuit 312. The delay circuit 312 holds the foreground layer 71 acquired from the high resolution line DMA 311 for a predetermined time, and then sends it to the synthesis circuit 310.

低解像度ライン用DMA313及びアップサンプリングモジュール314は、低解像度(第2解像度)の画像データである背景レイヤー72に対してライン単位で処理を行なう。低解像度ライン用DMA313は、メインメモリ7から背景レイヤー72を読み出す第2読出部であり、所定のタイミングで読み出した背景レイヤー72を順次アップサンプリングモジュール314へ送出する。アップサンプリングモジュール314は、低解像度ライン用DMA313から取得した背景レイヤー72に対して、前景レイヤー71と同じ解像度への変換処理を行なう解像度変換部として動作し、解像度を変換した背景レイヤー72を合成回路310へ送出する。   The low resolution line DMA 313 and the upsampling module 314 process the background layer 72, which is low resolution (second resolution) image data, in units of lines. The low resolution line DMA 313 is a second reading unit that reads the background layer 72 from the main memory 7, and sequentially sends the background layer 72 read at a predetermined timing to the upsampling module 314. The upsampling module 314 operates as a resolution converting unit that converts the background layer 72 acquired from the low resolution line DMA 313 to the same resolution as the foreground layer 71, and combines the background layer 72 with the converted resolution. Send to 310.

図8はアップサンプリングモジュール314の構成を示すブロック図である。図8(a)に示すように、アップサンプリングモジュール314は、ラインバッファ314a、アップサンプリング部314bなどを備える。ラインバッファ314aは、低解像度ライン用DMA313から取得した背景レイヤー72を順次格納していき、1ライン分の背景レイヤー72を格納した後、所定のタイミングでアップサンプリング部314bへ送出する。   FIG. 8 is a block diagram showing the configuration of the upsampling module 314. As shown in FIG. 8A, the upsampling module 314 includes a line buffer 314a, an upsampling unit 314b, and the like. The line buffer 314a sequentially stores the background layer 72 acquired from the DMA 313 for low resolution lines, stores the background layer 72 for one line, and sends it to the upsampling unit 314b at a predetermined timing.

具体的には、アップサンプリングモジュール314は、ラインバッファ314aが空であれば、低解像度ライン用DMA313に対して背景レイヤー72を要求する信号を送出する。メインメモリ7上に背景レイヤー72の画像データが展開されていれば、低解像度ライン用DMA313は、アップサンプリングモジュール314から要求されたデータ量の背景レイヤー72をメインメモリ7から読み出してアップサンプリングモジュール314へ送出する。   Specifically, if the line buffer 314a is empty, the upsampling module 314 sends a signal requesting the background layer 72 to the low resolution line DMA 313. If the image data of the background layer 72 is expanded on the main memory 7, the DMA 313 for low resolution line reads out the background layer 72 having the data amount requested from the upsampling module 314 from the main memory 7 and reads the upsampling module 314. To send.

アップサンプリングモジュール(検知手段)314は、低解像度ライン用DMA313から取得した背景レイヤー72を順次ラインバッファ314aに格納していき、ラインバッファ314aに1ライン分の背景レイヤー72が格納されたか否かを検知する。ラインバッファ314aに1ライン分の背景レイヤー72が格納されると、アップサンプリングモジュール314から合成回路310への背景レイヤー72のラインデータの出力が可能となる。アップサンプリングモジュール314は、ラインバッファ314aに1ライン分の背景レイヤー72が格納されたことを検知すると、ラインバッファ314aから背景レイヤー72の読み出しが可能であることを示す通知信号を高解像度ライン用DMA311へ送出する。   The upsampling module (detection means) 314 sequentially stores the background layer 72 acquired from the low resolution line DMA 313 in the line buffer 314a, and determines whether or not the background layer 72 for one line is stored in the line buffer 314a. Detect. When the background layer 72 for one line is stored in the line buffer 314a, the line data of the background layer 72 can be output from the upsampling module 314 to the synthesis circuit 310. When the upsampling module 314 detects that the background layer 72 for one line is stored in the line buffer 314a, the upsampling module 314 sends a notification signal indicating that the background layer 72 can be read from the line buffer 314a to the DMA 311 for high resolution line. To send.

高解像度ライン用DMA311は、アップサンプリングモジュール314から通知信号を取得した場合、メインメモリ7から前景レイヤー71を読み出して遅延回路312へ送出する処理を開始する。なお、高解像度ライン用DMA311は、前景レイヤー71を遅延回路312へ送出する処理を開始すると共に、この前景レイヤー71の遅延回路312への出力に同期した信号(同期信号)をアップサンプリングモジュール314へ送出する。   When acquiring the notification signal from the upsampling module 314, the high resolution line DMA 311 starts the process of reading the foreground layer 71 from the main memory 7 and sending it to the delay circuit 312. The high-resolution line DMA 311 starts a process of sending the foreground layer 71 to the delay circuit 312 and outputs a signal (synchronization signal) synchronized with the output of the foreground layer 71 to the delay circuit 312 to the upsampling module 314. Send it out.

アップサンプリングモジュール314は、高解像度ライン用DMA311から同期信号を取得した場合、ラインバッファ314aに格納してある1ライン分の背景レイヤー72をアップサンプリング部314bへ送出する処理を開始する。アップサンプリング部(変換処理部)314bは、ラインバッファ314aから順次取得する背景レイヤー72に対して解像度変換処理を行ない、前景レイヤー71の解像度と同じ解像度に変換し、得られた背景レイヤー72を順次合成回路310へ送出する。   When the synchronization signal is acquired from the high resolution line DMA 311, the upsampling module 314 starts a process of sending the background layer 72 for one line stored in the line buffer 314 a to the upsampling unit 314 b. The upsampling unit (conversion processing unit) 314b performs resolution conversion processing on the background layer 72 sequentially acquired from the line buffer 314a, converts the background layer 72 to the same resolution as the foreground layer 71, and sequentially converts the obtained background layer 72. The data is sent to the synthesis circuit 310.

なお、アップサンプリング部314bが行なう変換処理(補間処理)は、背景レイヤー生成処理部233が行なう解像度変換処理と同様に、ニアレストネイバー法、バイリニア法、バイキュービック法などの補間方法を用いることができる。   Note that the conversion process (interpolation process) performed by the upsampling unit 314b uses an interpolation method such as a nearest neighbor method, a bilinear method, or a bicubic method, similarly to the resolution conversion process performed by the background layer generation processing unit 233. it can.

ここで、遅延回路312が前景レイヤー71を保持する時間は、アップサンプリングモジュール314によるアップサンプリング処理(変換処理)に必要な時間と同じに設定されているので、遅延回路312から合成回路310への前景レイヤー71の出力タイミングと、アップサンプリングモジュール314から合成回路310への背景レイヤー72の出力タイミングとは同期が取れていることになる。   Here, since the time for which the delay circuit 312 holds the foreground layer 71 is set to be the same as the time required for the upsampling process (conversion process) by the upsampling module 314, the delay circuit 312 to the synthesis circuit 310 is set. The output timing of the foreground layer 71 and the output timing of the background layer 72 from the upsampling module 314 to the synthesis circuit 310 are synchronized.

合成回路(合成手段)310は、遅延回路312から取得する前景レイヤー71の画像データと、アップサンプリングモジュール314から取得する背景レイヤー72の画像データとを画素毎に合成し、合成された画像データ73をメインメモリ7に格納する。なお、合成回路310は、前景インデックスカラーテーブルの登録内容を参照し、前景レイヤーについては、各文字に色の再現を行なう。   The synthesis circuit (synthesizing unit) 310 synthesizes the image data of the foreground layer 71 acquired from the delay circuit 312 and the image data of the background layer 72 acquired from the upsampling module 314 for each pixel, and synthesizes the image data 73. Is stored in the main memory 7. Note that the composition circuit 310 refers to the registered contents of the foreground index color table and reproduces the color of each character for the foreground layer.

なお、アップサンプリングモジュール314は、図8(a)に示した構成に限られず、例えば図8(b)に示すように、ラインバッファ314aを2つ備える構成とすることもできる。図8(b)のように構成した場合、低解像度ライン用DMA313によってメインメモリ7から読み出された背景レイヤー72を一方のラインバッファ314aに書き込む処理と、他方のラインバッファ314aに格納された背景レイヤー72に対して行なうアップサンプリング処理(解像度変換処理)とを並列に実行させることが可能となる。従って、2つのラインバッファ314a,314aを用いることによって処理速度を向上させることができる。   Note that the upsampling module 314 is not limited to the configuration illustrated in FIG. 8A, and may be configured to include two line buffers 314a as illustrated in FIG. 8B, for example. When configured as shown in FIG. 8B, the background layer 72 read from the main memory 7 by the low resolution line DMA 313 is written to one line buffer 314a, and the background stored in the other line buffer 314a. It is possible to execute the upsampling process (resolution conversion process) performed on the layer 72 in parallel. Therefore, the processing speed can be improved by using the two line buffers 314a and 314a.

また、展開処理部30及び合成処理部31は、図6及び図7に示した構成に限られず、例えば図9及び図10に示すように構成することもできる。図9は展開処理部30の構成の変形例を示すブロック図、図10は合成処理部31の構成の変形例を示すブロック図である。図9に示した展開処理部30は、MMRデコーダ301、MMRデコーダDMA302、2つのJPEGデコーダ303,305、2つのJPEGデコーダDMA304,306などを備えている。   Further, the development processing unit 30 and the composition processing unit 31 are not limited to the configurations illustrated in FIGS. 6 and 7, and may be configured as illustrated in FIGS. 9 and 10, for example. FIG. 9 is a block diagram showing a modification example of the configuration of the expansion processing unit 30, and FIG. 10 is a block diagram showing a modification example of the composition processing unit 31. The development processing unit 30 illustrated in FIG. 9 includes an MMR decoder 301, an MMR decoder DMA 302, two JPEG decoders 303 and 305, two JPEG decoders DMA 304 and 306, and the like.

このような構成の展開処理部30では、1つのMMR画像データ61(前景レイヤー)の展開処理と、2つのJPEG画像データ62a,62b(背景レイヤー)の展開処理とを並列に実行させることができる。従って、例えば、背景レイヤーを更に中解像度の画像データ(写真データなど)と低解像度の画像データ(写真データよりも更に高解像度で処理する必要がないもの、下地データなど)とに分離し、それぞれを異なる解像度に低解像度化した後に圧縮されてハードディスク6に格納された場合であっても、処理の高速化が可能である。   In the development processing unit 30 having such a configuration, one MMR image data 61 (foreground layer) development process and two JPEG image data 62a and 62b (background layer) development processes can be executed in parallel. . Therefore, for example, the background layer is further separated into medium-resolution image data (photo data, etc.) and low-resolution image data (thing that does not need to be processed at a higher resolution than photo data, background data, etc.) Even if the resolution is reduced to a different resolution and then compressed and stored in the hard disk 6, the processing speed can be increased.

具体的には、MMRデコーダ301及びMMRデコーダDMA302によって、ハードディスク6に格納されたMMR画像データ61が展開され、前景レイヤー71(例えば300dpi)がメインメモリ7上に書き込まれる。また、JPEGデコーダ303及びJPEGデコーダDMA304によって、ハードディスク6に格納されたJPEG画像データ62aが展開され、背景レイヤー中の中解像度(例えば75dpi)の画像データ72aがメインメモリ7上に書き込まれ、JPEGデコーダ305及びJPEGデコーダDMA306によって、ハードディスク6に格納されたJPEG画像データ62bが展開され、背景レイヤー中の低解像度(例えば37.5dpi)の画像データ72bがメインメモリ7上に書き込まれる。   Specifically, the MMR image data 61 stored in the hard disk 6 is developed by the MMR decoder 301 and the MMR decoder DMA 302, and the foreground layer 71 (for example, 300 dpi) is written on the main memory 7. Further, the JPEG image data 62a stored in the hard disk 6 is developed by the JPEG decoder 303 and the JPEG decoder DMA 304, and the medium resolution (for example, 75 dpi) image data 72a in the background layer is written on the main memory 7, and the JPEG decoder The JPEG image data 62 b stored in the hard disk 6 is expanded by the 305 and the JPEG decoder DMA 306, and the low resolution (for example, 37.5 dpi) image data 72 b in the background layer is written on the main memory 7.

図10に示した合成処理部31は、合成回路310、高解像度ライン用DMA311、遅延回路312、低解像度ライン用DMA313、2つのアップサンプリングモジュール314,316、中解像度ライン用DMA315などを備えている。高解像度ライン用DMA311、遅延回路312、低解像度ライン用DMA313、アップサンプリングモジュール314は、図7に示したそれぞれの構成と同一であり、中解像度ライン用DMA315及びアップサンプリングモジュール316は、図7に示した低解像度ライン用DMA313及びアップサンプリングモジュール314と同様の構成を有する。   The synthesis processing unit 31 shown in FIG. 10 includes a synthesis circuit 310, a high resolution line DMA 311, a delay circuit 312, a low resolution line DMA 313, two upsampling modules 314 and 316, a medium resolution line DMA 315, and the like. . The high-resolution line DMA 311, the delay circuit 312, the low-resolution line DMA 313, and the upsampling module 314 have the same configurations as those shown in FIG. 7, and the medium-resolution line DMA 315 and the upsampling module 316 are shown in FIG. The low-resolution line DMA 313 and the upsampling module 314 shown in FIG.

このような構成の合成処理部31は、上述したように展開処理部30によってメインメモリ7上に展開された解像度の異なる前景レイヤー71、背景レイヤー中の中解像度の画像データ72a及び背景レイヤー中の低解像度の画像データ72bを合成する。なお、合成された画像データ73はメインメモリ7に格納される。   As described above, the composition processing unit 31 having such a configuration includes the foreground layer 71 having different resolution developed on the main memory 7 by the development processing unit 30, the medium resolution image data 72a in the background layer, and the background layer. The low-resolution image data 72b is synthesized. Note that the synthesized image data 73 is stored in the main memory 7.

高解像度ライン用DMA311及び遅延回路312は、高解像度の画像データである前景レイヤー71に対してライン単位で処理を行なう。低解像度ライン用DMA313及びアップサンプリングモジュール314は、低解像度の画像データである背景レイヤー中の画像データ72bに対してライン単位で処理を行なう。中解像度ライン用DMA315及びアップサンプリングモジュール316は、中解像度の画像データである背景レイヤー中の画像データ72aに対してライン単位で処理を行なう。   The high resolution line DMA 311 and the delay circuit 312 process the foreground layer 71, which is high resolution image data, in units of lines. The low-resolution line DMA 313 and the upsampling module 314 process the image data 72b in the background layer, which is low-resolution image data, in units of lines. The medium resolution line DMA 315 and the upsampling module 316 process the image data 72a in the background layer, which is medium resolution image data, in units of lines.

中解像度ライン用DMA315は、メインメモリ7から中解像度の画像データ72aを読み出し、所定のタイミングで順次アップサンプリングモジュール316へ送出する。アップサンプリングモジュール316は、中解像度ライン用DMA315から取得した画像データ72aに対して、前景レイヤー71と同じ解像度への変換処理を行なう解像度変換部として動作し、解像度を変換した画像データ72aを合成回路310へ送出する。なお、アップサンプリングモジュール316も、アップサンプリングモジュール314と同様に、ラインバッファ及びアップサンプリング部(共に図示せず)を備える。   The medium resolution line DMA 315 reads the medium resolution image data 72a from the main memory 7 and sequentially sends it to the upsampling module 316 at a predetermined timing. The upsampling module 316 operates as a resolution conversion unit that converts the image data 72a acquired from the medium resolution line DMA 315 to the same resolution as the foreground layer 71, and combines the image data 72a with the converted resolution. Send to 310. The upsampling module 316 also includes a line buffer and an upsampling unit (both not shown), like the upsampling module 314.

図10に示した構成の合成処理部31では、アップサンプリングモジュール314は、ラインバッファ314aが空であれば、低解像度ライン用DMA313に対して背景レイヤー中の画像データ72bを要求する信号を送出し、低解像度ライン用DMA313は、アップサンプリングモジュール314から要求されたデータ量の画像データ72bをメインメモリ7から読み出してアップサンプリングモジュール314へ送出する。   In the composition processing unit 31 having the configuration shown in FIG. 10, if the line buffer 314a is empty, the upsampling module 314 sends a signal requesting the image data 72b in the background layer to the low resolution line DMA 313. The low resolution line DMA 313 reads out the image data 72b having the data amount requested from the upsampling module 314 from the main memory 7 and sends it to the upsampling module 314.

アップサンプリングモジュール314は、低解像度ライン用DMA313から取得した画像データ72bを順次ラインバッファ314aに格納していき、ラインバッファ314aに1ライン分の画像データ72bが格納されたことを検知すると、ラインバッファ314aから画像データ72bの読み出しが可能であることを示す通知信号を高解像度ライン用DMA311へ送出する。   The upsampling module 314 sequentially stores the image data 72b acquired from the DMA 313 for low resolution lines in the line buffer 314a. When the upsampling module 314 detects that one line of image data 72b is stored in the line buffer 314a, the line buffer 314a A notification signal indicating that the image data 72b can be read from 314a is sent to the DMA 311 for high resolution line.

同様に、アップサンプリングモジュール316は、自身のラインバッファが空であれば、中解像度ライン用DMA315に対して背景レイヤー中の画像データ72aを要求する信号を送出し、中解像度ライン用DMA315は、アップサンプリングモジュール316から要求されたデータ量の画像データ72aをメインメモリ7から読み出してアップサンプリングモジュール316へ送出する。アップサンプリングモジュール316は、中解像度ライン用DMA315から取得した画像データ72aを順次ラインバッファに格納していき、ラインバッファに1ライン分の画像データ72aが格納されたことを検知すると、ラインバッファから画像データ72aの読み出しが可能であることを示す通知信号を高解像度ライン用DMA311へ送出する。   Similarly, if its line buffer is empty, the upsampling module 316 sends a signal requesting the image data 72a in the background layer to the DMA 315 for the medium resolution line, and the DMA 315 for the medium resolution line Image data 72 a having a data amount requested from the sampling module 316 is read from the main memory 7 and sent to the upsampling module 316. The upsampling module 316 sequentially stores the image data 72a acquired from the DMA 315 for medium resolution lines in the line buffer. When the upsampling module 316 detects that one line of image data 72a is stored in the line buffer, the upsampling module 316 reads the image data 72a from the line buffer. A notification signal indicating that the data 72a can be read out is sent to the high-resolution line DMA 311.

高解像度ライン用DMA311は、アップサンプリングモジュール314及びアップサンプリングモジュール316のそれぞれから通知信号を取得した場合、メインメモリ7から前景レイヤー71を読み出して遅延回路312へ送出すると共に、この前景レイヤー71の遅延回路312への出力に同期した信号(同期信号)をアップサンプリングモジュール314及びアップサンプリングモジュール316へそれぞれ送出する。   When the high-resolution line DMA 311 acquires the notification signal from each of the upsampling module 314 and the upsampling module 316, the high-resolution line DMA 311 reads the foreground layer 71 from the main memory 7 and sends it to the delay circuit 312. A signal (synchronization signal) synchronized with the output to the circuit 312 is sent to the upsampling module 314 and the upsampling module 316, respectively.

アップサンプリングモジュール314,316はそれぞれ、高解像度ライン用DMA311から同期信号を取得した場合、ラインバッファ314aに格納してある1ライン分の画像データ72b,72aのアップサンプリング部314bへの送出を開始させる。アップサンプリングモジュール314,316のアップサンプリング部314bは、ラインバッファ314aから順次取得する画像データ72b,72aに対してそれぞれ解像度変換処理(補正処理)を行ない、前景レイヤー71の解像度と同じ解像度に変換し、得られた画像データ72b,72aを順次合成回路310へ送出する。   When each of the upsampling modules 314 and 316 obtains a synchronization signal from the high resolution line DMA 311, the upsampling modules 314 and 316 start sending the image data 72 b and 72 a for one line stored in the line buffer 314 a to the upsampling unit 314 b. . The upsampling unit 314b of the upsampling modules 314 and 316 performs resolution conversion processing (correction processing) on the image data 72b and 72a sequentially obtained from the line buffer 314a, and converts the image data to the same resolution as that of the foreground layer 71. The obtained image data 72b and 72a are sequentially sent to the synthesis circuit 310.

なお、アップサンプリングモジュール314,316はそれぞれ独立して動作しており、アップサンプリングモジュール314のラインバッファ314aへの画像データ72bの格納処理と、アップサンプリングモジュール316のラインバッファへの画像データ72aの格納処理とは各別に実行される。従って、高解像度ライン用DMA311は、アップサンプリングモジュール314,316の両方から通知信号を取得して初めてメインメモリ7からの前景レイヤー71の読出、遅延回路312への送出を開始することができる。また、高解像度ライン用DMA311は、同期信号をアップサンプリングモジュール314,316の両方に送出する必要がある。   The upsampling modules 314 and 316 operate independently of each other. The upsampling module 314 stores the image data 72b in the line buffer 314a and the upsampling module 316 stores the image data 72a in the line buffer. It is executed separately from the processing. Therefore, the high-resolution line DMA 311 can start reading the foreground layer 71 from the main memory 7 and sending it to the delay circuit 312 only after obtaining notification signals from both the upsampling modules 314 and 316. The high-resolution line DMA 311 needs to send a synchronization signal to both the upsampling modules 314 and 316.

ここでも、遅延回路312が前景レイヤー71を保持する時間は、アップサンプリングモジュール314,316によるアップサンプリング処理(解像度変換処理)に必要な時間と同じに設定されているので、遅延回路312から合成回路310への前景レイヤー71の出力タイミングと、アップサンプリングモジュール314から合成回路310への画像データ72bの出力タイミングとアップサンプリングモジュール316から合成回路310への画像データ72aの出力タイミングとは同期が取れていることになる。   Also here, the time for which the delay circuit 312 holds the foreground layer 71 is set to be the same as the time required for the upsampling processing (resolution conversion processing) by the upsampling modules 314 and 316. The output timing of the foreground layer 71 to 310, the output timing of the image data 72b from the upsampling module 314 to the synthesis circuit 310, and the output timing of the image data 72a from the upsampling module 316 to the synthesis circuit 310 are synchronized. Will be.

合成回路310は、遅延回路312から取得する前景レイヤー71の画像データと、アップサンプリングモジュール314から取得する背景レイヤーの画像データ72bと、アップサンプリングモジュール316から取得する背景レイヤーの画像データ72aとを画素毎に合成し、合成された画像データ73をメインメモリ7に格納する。なお、合成回路310は、前景インデックスカラーテーブルの登録内容を参照し、前景レイヤーについては、各文字に色の再現を行なう。   The synthesis circuit 310 pixelally converts the foreground layer 71 image data acquired from the delay circuit 312, the background layer image data 72 b acquired from the upsampling module 314, and the background layer image data 72 a acquired from the upsampling module 316. The combined image data 73 is stored in the main memory 7. Note that the composition circuit 310 refers to the registered contents of the foreground index color table and reproduces the color of each character for the foreground layer.

上述したように、背景レイヤー72を複数の画像データに分解して処理することによって異なる解像度の画像データが増えた場合であっても、それぞれの解像度の画像データを処理するアップサンプリングモジュール314,316が高解像度ライン用DMA311へ通知信号を送出する構成、高解像度ライン用DMA311からそれぞれのアップサンプリングモジュール314,316へ同期信号を送出する構成を追加することによって対応可能である。   As described above, even when the background layer 72 is decomposed into a plurality of image data and processed, the upsampling modules 314 and 316 that process the image data with different resolutions. This can be dealt with by adding a configuration for sending a notification signal to the DMA 311 for high resolution lines and a configuration for sending a synchronization signal from the DMA 311 for high resolution lines to the respective upsampling modules 314 and 316.

上述したように、本実施の形態の合成処理部31は、異なる解像度の前景レイヤー71及び背景レイヤー72を合成する際に、低解像度の背景レイヤー72に対して前景レイヤー71の解像度への変換処理を行なった後に両者を合成するので、画質の劣化を防止した合成処理が可能となる。また、遅延回路312から合成回路310へ出力される高解像度の前景レイヤー71の出力タイミングと、アップサンプリングモジュール314(及び316)から合成回路310へ出力される低解像度(及び中解像度)の背景レイヤー72(画像データ72b,72a)の出力タイミングとを同期させることができるので、ハードディスク及びメインメモリなどのほかにイメージメモリ、従来技術のような輪郭指定回路及びLUTなどが必要ない。従って、メモリ量を削減できると共に装置の構成を簡略化することができるのでコストアップも回避できる。   As described above, the composition processing unit 31 according to the present embodiment converts the foreground layer 71 into the resolution of the foreground layer 71 with respect to the low-resolution background layer 72 when compositing the foreground layer 71 and the background layer 72 having different resolutions. Since the two are combined after performing the above, it is possible to perform a combining process that prevents deterioration in image quality. Also, the output timing of the high-resolution foreground layer 71 output from the delay circuit 312 to the synthesis circuit 310, and the low-resolution (and medium-resolution) background layer output from the upsampling module 314 (and 316) to the synthesis circuit 310. 72 (image data 72b, 72a) can be synchronized with the output timing of the image data, the image memory, the contour designating circuit and the LUT as in the prior art are not required in addition to the hard disk and the main memory. Accordingly, the amount of memory can be reduced and the configuration of the apparatus can be simplified, so that an increase in cost can be avoided.

また、合成処理部31が、低解像度ライン用DMA313及びアップサンプリングモジュール314を備えることにより、メインメモリ7からの画像データの読出処理と、読み出した画像データに対する解像度変換処理とを並列に実行させることができるので、例えば同一解像度(高解像度又は低解像度)の画像データ(前景レイヤー又は背景レイヤー)を複数に分離して圧縮した場合であっても処理の高速化が可能である。   In addition, since the synthesis processing unit 31 includes the low resolution line DMA 313 and the upsampling module 314, the image data reading process from the main memory 7 and the resolution conversion process for the read image data are executed in parallel. Therefore, for example, even when image data (foreground layer or background layer) having the same resolution (high resolution or low resolution) is separated into a plurality of images and compressed, the processing speed can be increased.

上述の実施の形態で説明した画像形成装置100では、例えばファクシミリの送信を行なうときは、モデム(送信装置5)にて、相手先との送信手続きを行ない送信可能な状態が確保されると、所定の形式で圧縮された画像データ(スキャナで読み込まれた画像データ)をメモリ(ハードディスク6)から読み出し、圧縮形式の変更など必要な処理を施して、相手先に通信回線を介して順次送信する。また、ファクシミリを受信する場合、送信装置5は、通信手続きを行ないながら相手先から送信されてくる画像データを受信してカラー画像処理装置2へ出力し、カラー画像処理装置2は受信した画像データを、不図示の圧縮/伸張処理部にて伸張処理を施す。伸張された画像データは、必要に応じて、回転処理や解像度変換処理が行なわれ、出力階調補正、階調再現処理が施され、カラー画像出力装置3より出力される。   In the image forming apparatus 100 described in the above-described embodiment, for example, when performing facsimile transmission, the modem (transmission apparatus 5) performs a transmission procedure with the other party and secures a state where transmission is possible. Image data compressed in a predetermined format (image data read by a scanner) is read from the memory (hard disk 6), subjected to necessary processing such as changing the compression format, and sequentially transmitted to the other party via a communication line. . When receiving a facsimile, the transmission device 5 receives the image data transmitted from the other party while performing a communication procedure and outputs the image data to the color image processing device 2. The color image processing device 2 receives the received image data. Is decompressed by a compression / decompression processing unit (not shown). The decompressed image data is subjected to rotation processing and resolution conversion processing as necessary, subjected to output tone correction and tone reproduction processing, and is output from the color image output device 3.

また、画像形成装置100は、送信装置5を介して、ネットワークに接続されたコンピュータ及び他のデジタル複合機などとの間でデータ通信を行なうように構成してある。従って、上述したように圧縮されてハードディスク6に格納された圧縮画像データをネットワークを介して外部の装置へ送信することができ、外部の装置から圧縮画像データを受信することもできる。また、デジタルカラー複合機だけでなく、モノクロの画像を扱う複合機、コピア機能及びプリンタ機能のみを備えたデジタルカラー複写機、ファクシミリ通信機能のみを有するファクシミリ通信装置単体においても本発明を適用することができる。
に適用しても良い。
Further, the image forming apparatus 100 is configured to perform data communication with a computer and other digital multi-function peripherals connected to the network via the transmission device 5. Therefore, the compressed image data compressed as described above and stored in the hard disk 6 can be transmitted to an external device via the network, and the compressed image data can also be received from the external device. Further, the present invention can be applied not only to a digital color multifunction peripheral but also to a multifunction peripheral that handles monochrome images, a digital color copying machine that has only a copier function and a printer function, and a facsimile communication apparatus that has only a facsimile communication function. Can do.
You may apply to.

本発明に係る画像処理装置を備える画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to the present invention. レイヤー分離に基づく画像圧縮処理を説明するための模式図である。It is a schematic diagram for demonstrating the image compression process based on layer separation. 圧縮処理部の構成を示すブロック図である。It is a block diagram which shows the structure of a compression process part. 前景インデックスカラーテーブルの登録内容を示す模式図である。It is a schematic diagram which shows the registration content of a foreground index color table. 圧縮処理部による圧縮処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the compression process by a compression process part. 展開処理部の構成を示すブロック図である。It is a block diagram which shows the structure of an expansion | deployment process part. 合成処理部の構成を示すブロック図である。It is a block diagram which shows the structure of a synthetic | combination process part. アップサンプリングモジュールの構成を示すブロック図である。It is a block diagram which shows the structure of an upsampling module. 展開処理部の構成の変形例を示すブロック図である。It is a block diagram which shows the modification of a structure of an expansion | deployment process part. 合成処理部の構成の変形例を示すブロック図である。It is a block diagram which shows the modification of a structure of a synthetic | combination process part.

符号の説明Explanation of symbols

100 画像形成装置
1 カラー画像入力装置
2 カラー画像処理装置
3 カラー画像出力装置
30 展開処理部
31 合成処理部
310 合成回路(合成手段)
311 高解像度ライン用DMA(第1読出部)
312 遅延回路
313 低解像度ライン用DMA(第2読出部)
314 アップサンプリングモジュール(解像度変換部、検知手段)
314a ラインバッファ
314b アップサンプリング部(変換処理部)
DESCRIPTION OF SYMBOLS 100 Image forming device 1 Color image input device 2 Color image processing device 3 Color image output device 30 Development processing unit 31 Composition processing unit 310 Composition circuit (composition means)
311 DMA for high resolution line (first reading unit)
312 Delay circuit 313 DMA for low resolution line (second reading unit)
314 Upsampling module (resolution converter, detection means)
314a Line buffer 314b Upsampling unit (conversion processing unit)

Claims (4)

第1解像度の画像データ及び前記第1解像度よりも低い第2解像度の画像データを合成する画像処理装置において、
画像データを記憶する記憶手段と、
複数の画像データを合成する合成手段と、
前記記憶手段から第1解像度の画像データを読み出す第1読出部と、
該第1読出部が読み出した第1解像度の画像データを所定時間保持した後に前記合成手段へ送出する遅延回路と、
前記記憶手段から第2解像度の画像データを読み出す第2読出部と、
該第2読出部が読み出した第2解像度の画像データに対して前記第1解像度への変換処理を行なう解像度変換部とを備え、
前記合成手段は、前記遅延回路から送出された画像データ及び前記解像度変換部が変換処理を行なった画像データを合成するように構成されていること
を特徴とする画像処理装置。
In an image processing apparatus for synthesizing first resolution image data and second resolution image data lower than the first resolution,
Storage means for storing image data;
A combining means for combining a plurality of image data;
A first reading unit for reading image data of a first resolution from the storage unit;
A delay circuit for sending image data of the first resolution read by the first reading unit to the combining unit after holding the image data for a predetermined time;
A second reading unit for reading image data of the second resolution from the storage means;
A resolution conversion unit that performs conversion processing on the second resolution image data read by the second reading unit to the first resolution;
The image processing apparatus, wherein the synthesizing unit is configured to synthesize the image data sent from the delay circuit and the image data subjected to conversion processing by the resolution conversion unit.
前記解像度変換部は、
前記第2読出部が読み出した第2解像度の画像データを格納するラインバッファと、
該ラインバッファに格納された画像データに対して前記第1解像度への変換処理を行なう変換処理部と、
前記ラインバッファに第2解像度の画像データが格納されたことを検知する検知手段と、
該検知手段がラインバッファに画像データが格納されたことを検知した場合、前記ラインバッファから画像データの読み出しが可能であることを示す通知信号を前記第1読出部へ送出する手段とを有し、
前記第1読出部は、前記通知信号を取得した場合、前記記憶手段から第1解像度の画像データを読み出して前記遅延回路へ送出する処理を開始するように構成されており、前記画像データを遅延回路へ送出する処理を開始した場合、同期信号を前記解像度変換部へ送出する手段を有し、
前記解像度変換部は、前記同期信号を取得した場合、前記ラインバッファに格納された画像データを前記変換処理部へ送出する処理を開始するように構成されていること
を特徴とする請求項1に記載の画像処理装置。
The resolution converter
A line buffer for storing image data of the second resolution read by the second reading unit;
A conversion processing unit for converting the image data stored in the line buffer into the first resolution;
Detecting means for detecting that image data of the second resolution is stored in the line buffer;
And a means for sending a notification signal indicating that the image data can be read from the line buffer to the first reading section when the detecting means detects that the image data is stored in the line buffer. ,
The first reading unit is configured to start a process of reading the image data of the first resolution from the storage unit and sending the image data to the delay circuit when the notification signal is acquired, and delays the image data. When starting the processing to send to the circuit, it has means for sending a synchronization signal to the resolution converter,
The said resolution conversion part is comprised so that the process which sends out the image data stored in the said line buffer to the said conversion process part may be started when the said synchronizing signal is acquired. The image processing apparatus described.
前記解像度変換部は、前記ラインバッファを複数有しており、前記ラインバッファのうちの一のラインバッファに格納された第2解像度の画像データを読み出して前記変換処理部へ送出する処理と、前記第2読出部が読み出した第2解像度の画像データを他のラインバッファに格納する処理とを並列に行なうように構成されていること
を特徴とする請求項2に記載の画像処理装置。
The resolution converter has a plurality of the line buffers, reads out the second resolution image data stored in one of the line buffers, and sends the image data to the conversion processor; and The image processing apparatus according to claim 2, wherein the image processing apparatus is configured to perform parallel processing of storing the second resolution image data read by the second reading unit in another line buffer.
請求項1から3までのいずれかひとつに記載の画像処理装置と、該画像処理装置で処理された画像データに基づいて出力画像を形成する画像形成手段とを備えることを特徴とする画像形成装置。   4. An image forming apparatus comprising: the image processing apparatus according to claim 1; and an image forming unit that forms an output image based on image data processed by the image processing apparatus. .
JP2008052280A 2008-03-03 2008-03-03 Image processor and image forming apparatus Pending JP2009212692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008052280A JP2009212692A (en) 2008-03-03 2008-03-03 Image processor and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008052280A JP2009212692A (en) 2008-03-03 2008-03-03 Image processor and image forming apparatus

Publications (1)

Publication Number Publication Date
JP2009212692A true JP2009212692A (en) 2009-09-17

Family

ID=41185440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008052280A Pending JP2009212692A (en) 2008-03-03 2008-03-03 Image processor and image forming apparatus

Country Status (1)

Country Link
JP (1) JP2009212692A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011093199A (en) * 2009-10-29 2011-05-12 Oki Data Corp Image processing apparatus and image forming apparatus
JP2012147412A (en) * 2010-12-20 2012-08-02 Ricoh Co Ltd Image formation device, image formation method, and integrated circuit
JP2014179760A (en) * 2013-03-14 2014-09-25 Ricoh Co Ltd Image formation controller, image formation device provided with image formation controller, and method for controlling image formation
JP2019512749A (en) * 2016-03-31 2019-05-16 華為技術有限公司Huawei Technologies Co.,Ltd. Application program processing method and terminal device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011093199A (en) * 2009-10-29 2011-05-12 Oki Data Corp Image processing apparatus and image forming apparatus
JP2012147412A (en) * 2010-12-20 2012-08-02 Ricoh Co Ltd Image formation device, image formation method, and integrated circuit
JP2014179760A (en) * 2013-03-14 2014-09-25 Ricoh Co Ltd Image formation controller, image formation device provided with image formation controller, and method for controlling image formation
JP2019512749A (en) * 2016-03-31 2019-05-16 華為技術有限公司Huawei Technologies Co.,Ltd. Application program processing method and terminal device

Similar Documents

Publication Publication Date Title
JP4707751B2 (en) Image compression method, image compression apparatus, image forming apparatus, computer program, and recording medium
JP5089713B2 (en) Image compression apparatus, compressed image output apparatus, image compression method, computer program, and recording medium
JP4861711B2 (en) Image processing apparatus, image compression method, image compression program, and recording medium
US8606014B2 (en) Image Processing apparatus, extracting foreground pixels for extracted continuous variable density areas according to color information
JP5036844B2 (en) Image compression apparatus, image output apparatus, image reading apparatus, image compression method, computer program, and recording medium
US7536055B2 (en) Image compression device, image output device, image decompression device, printer, image processing device, copier, image compression method, image decompression method, image processing program, and storage medium storing the image processing program
JP5139786B2 (en) Image processing apparatus, image processing method, and image processing program
JP2010035139A (en) Image processor, image forming apparatus, image processing method, and image processing program
JP2010246039A (en) Image processing unit, image-forming device, method of processing image, computer program, and recording medium
JP2010246040A (en) Image processing unit, image-forming device, method of processing image, computer program, and recording medium
JP2008124819A (en) Image processor and image processing method
JP2009141430A (en) Image processor
JP4528846B2 (en) Image compression method, image compression apparatus, image processing apparatus, image forming apparatus, computer program, and recording medium
JP5225201B2 (en) Image processing device
JP2009212692A (en) Image processor and image forming apparatus
JP2009246488A (en) Line buffer circuit, image processing apparatus, and image forming apparatus
JP2005269379A (en) System, method and program for image processing
JP5052562B2 (en) Image processing device
JP6762140B2 (en) Image processing equipment, image forming equipment, programs and recording media
JP2004341760A (en) Image forming apparatus, program and storage medium
JP3815214B2 (en) Image processing apparatus and storage medium storing screen processing program
JP5186994B2 (en) Image processing device
JP5072907B2 (en) Image processing device
JP2010074300A (en) Image processor, image reader and image forming apparatus
JP2004187000A (en) Image processor and image processing method