JP4375106B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP4375106B2
JP4375106B2 JP2004138674A JP2004138674A JP4375106B2 JP 4375106 B2 JP4375106 B2 JP 4375106B2 JP 2004138674 A JP2004138674 A JP 2004138674A JP 2004138674 A JP2004138674 A JP 2004138674A JP 4375106 B2 JP4375106 B2 JP 4375106B2
Authority
JP
Japan
Prior art keywords
data
compression
image
image data
designated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004138674A
Other languages
Japanese (ja)
Other versions
JP2005323066A (en
Inventor
真之 久武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2004138674A priority Critical patent/JP4375106B2/en
Publication of JP2005323066A publication Critical patent/JP2005323066A/en
Application granted granted Critical
Publication of JP4375106B2 publication Critical patent/JP4375106B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Facsimiles In General (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

本発明は、処理対象となった画像データを、圧縮してネットワークなどを介して蓄積装置にファイリングしたり、プリンタ装置で出力したりするなど、所定の処理に供する画像通信装置に関する。   The present invention relates to an image communication apparatus for performing a predetermined process such as compressing image data to be processed and filing it in a storage device via a network or outputting it to a printer device.

近年、画像データを、例えば文字・線画部分と絵柄・背景部分を分離し、それぞれを独立に圧縮符号化する方式(ITU−T勧告T.44にミクストラスターコンテント(以下、MRCと略記)として規格化されている方式)は、文字・絵柄が混在する画像データに対してJPEG(Joint Picture Experts Group)圧縮を施した際に発生するモスキートノイズを軽減しつつ、高圧縮に符号化することができるなどの点で注目を集めている。なお、ITU−T勧告T.44においては、圧縮率を高めたり、画質を向上させる方法については定めがなく、圧縮処理の具体的な方法については実装ごとに異なっているのが現状である。
特開2000−307867号公報 特開2001−78009号公報
In recent years, image data has been standardized as, for example, a method of separating character / line drawing parts and patterns / background parts and independently compressing and coding them (ITU-T recommendation T.44 as mixed star content (hereinafter abbreviated as MRC)). Can be encoded with high compression while reducing mosquito noise that occurs when JPEG (Joint Picture Experts Group) compression is applied to image data containing mixed characters and pictures. Attracted attention in terms of. The ITU-T recommendation T.I. In 44, the method for increasing the compression rate or improving the image quality is not defined, and the specific method for the compression process is different for each implementation.
JP 2000-307867 A JP 2001-78009 A

このITUーT勧告T.44に基づく方式を具現化した従来の装置では通常、文字・線画部分と絵柄・背景の部分とはそれぞれ予め定められた圧縮方法で圧縮される。また、圧縮パラメータは、専ら画像データの内容に基づいて決定される。このため、圧縮後の画像の用途によっては圧縮率と画質とのバランスがユーザの所望する状態にならないことがある。例えば一般には、電子メール等で送信する際には圧縮率を高める(この場合は画質が若干劣化する)ことが望ましく、ファイルとして保存する際は、画質を高める(この場合は圧縮率が若干低下する)ことが望ましい。   This ITU-T recommendation T.I. In the conventional apparatus which implements the method based on 44, the character / line drawing part and the picture / background part are usually compressed by a predetermined compression method. Further, the compression parameter is determined exclusively based on the contents of the image data. For this reason, depending on the use of the image after compression, the balance between the compression rate and the image quality may not be in a state desired by the user. For example, in general, it is desirable to increase the compression rate (in this case, the image quality is slightly degraded) when sending by e-mail, etc., and when saving as a file, the image quality is increased (in this case, the compression rate is slightly decreased) Is desirable.

そこで、ユーザが任意に圧縮パラメータを調整できるようにすることも考えられる。しかしながら、圧縮パラメータの調整は必ずしも容易でない。   Therefore, it may be considered that the user can arbitrarily adjust the compression parameter. However, adjustment of compression parameters is not always easy.

本発明は、上記実情に鑑みて為されたもので、容易な操作で、用途に応じて圧縮率を制御できる画像処理装置を提供することをその目的の一つとする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image processing apparatus capable of controlling the compression rate in accordance with the application with an easy operation.

上記従来例の問題点を解決するための本発明は、画像処理装置であって、処理対象となった画像データに対する処理の指定を受け入れる手段と、前記指定された処理の内容に基づいて分離圧縮条件を設定する手段と、前記設定された分離圧縮条件に基づいて、前記画像データの各画素を複数のプレーンに分離し、各プレーンの圧縮処理を行い、圧縮処理後の各プレーンのデータを含む圧縮データを生成する圧縮処理手段と、を含み、前記圧縮データが、前記指定された処理に供されることを特徴としている。   The present invention for solving the problems of the above-described conventional example is an image processing apparatus, a means for accepting processing designation for image data to be processed, and separation compression based on the contents of the designated processing Based on the means for setting conditions and the set separation and compression conditions, each pixel of the image data is separated into a plurality of planes, each plane is subjected to compression processing, and the data of each plane after compression processing is included Compression processing means for generating compressed data, wherein the compressed data is subjected to the designated processing.

ここで前記指定された処理は、指定された転送先へ画像データを転送する処理であり、前記分離圧縮条件が、前記指定された転送先に基づいて設定されることとしてもよい。また前記指定された処理は、指定された転送先へ画像データを転送する処理であり、前記分離圧縮条件が、前記転送の処理に係るプロトコルの種別に基づいて設定されることとしてもよい。さらに前記指定された処理は、指定された転送先へ画像データを転送する処理であり、前記分離圧縮条件が、前記転送先のアドレス情報に基づいて設定されることとしてもよい。   Here, the designated process is a process of transferring image data to a designated transfer destination, and the separation compression condition may be set based on the designated transfer destination. The designated process may be a process of transferring image data to a designated transfer destination, and the separation and compression condition may be set based on a protocol type related to the transfer process. Furthermore, the designated process may be a process of transferring image data to a designated transfer destination, and the separation / compression condition may be set based on address information of the transfer destination.

さらに、これらにおいて、前記分離圧縮条件は、プレーンの少なくとも一つについて、利用されている色数を低減する、限定色化処理を行うか否かの条件を含んでもよい。また、前記分離条件は、その設定によって、出力されるプレーンの数が異なるものであってもよい。   Further, in these, the separation / compression condition may include a condition as to whether or not to perform a limited color processing for reducing the number of colors used for at least one of the planes. Further, the number of planes to be output may be different depending on the setting of the separation condition.

本発明の一態様に係る画像処理方法は、処理対象となった画像データに対する処理の指定を受け入れ、前記指定された処理の内容に基づいて分離圧縮条件を設定し、前記設定された分離圧縮条件に基づいて、前記画像データの各画素を複数のプレーンに分離し、各プレーンの圧縮処理を行い、圧縮処理後の各プレーンのデータを含む圧縮データを生成して、前記圧縮データを、前記指定された処理に供することを特徴としている。   The image processing method according to an aspect of the present invention accepts designation of processing for image data to be processed, sets separation compression conditions based on the contents of the designated processing, and sets the set separation compression conditions Each pixel of the image data is separated into a plurality of planes, compression processing of each plane is performed, compressed data including data of each plane after compression processing is generated, and the compressed data is It is characterized in that it is subjected to processed processing.

また、本発明の別の態様に係るプログラムは、コンピュータに、処理対象となった画像データに対する処理の指定を受け入れる手順と、前記指定された処理の内容に基づいて分離圧縮条件を設定する手順と、前記設定された分離圧縮条件に基づいて、前記画像データの各画素を複数のプレーンに分離し、各プレーンの圧縮処理を行い、圧縮処理後の各プレーンのデータを含む圧縮データを生成する圧縮処理手順と、を実行させ、前記圧縮データを、前記指定された処理に供させることを特徴としている。   Further, a program according to another aspect of the present invention includes a procedure for accepting a processing designation for image data to be processed in a computer, and a procedure for setting a separation and compression condition based on the contents of the designated processing. Based on the set separation compression condition, each pixel of the image data is separated into a plurality of planes, each plane is subjected to compression processing, and compressed data including data of each plane after compression processing is generated And the compressed data is used for the designated processing.

本発明の実施の形態について図面を参照しながら説明する。本発明の実施の形態に係る画像処理装置1は、制御部11と、記憶部12と、操作部13と、表示部14と、通信部15と、入出力インタフェース(I/F)16とを含んで構成されている。また、この画像処理装置は、スキャナ2やプリンタ3に接続されてもよいし、ネットワークを介して他の情報処理装置に接続されていてもよい。本実施の形態の画像処理装置1は、ネットワークに接続されたパーソナルコンピュータや、複合機などによって実現できる。   Embodiments of the present invention will be described with reference to the drawings. An image processing apparatus 1 according to an embodiment of the present invention includes a control unit 11, a storage unit 12, an operation unit 13, a display unit 14, a communication unit 15, and an input / output interface (I / F) 16. It is configured to include. Further, this image processing apparatus may be connected to the scanner 2 or the printer 3 or may be connected to another information processing apparatus via a network. The image processing apparatus 1 according to the present embodiment can be realized by a personal computer connected to a network, a multifunction machine, or the like.

制御部11は、CPU(Central Processing Unit)などで実現でき、記憶部12に格納されているプログラムに従って動作する。具体的にこの制御部11は、分離圧縮条件を設定する条件設定処理と、当該設定された分離圧縮条件に従って、処理対象となった画像データを複数のプレーンに分離し、各プレーンの圧縮を行う分離圧縮処理とを実行する。また、この制御部11は、圧縮処理後の各プレーンのデータを含む圧縮データを生成し、当該圧縮データについてユーザから指定された処理を実行する。これらの制御部11の具体的な処理の内容は後に詳しく述べる。   The control unit 11 can be realized by a CPU (Central Processing Unit) or the like, and operates according to a program stored in the storage unit 12. Specifically, the control unit 11 separates the image data to be processed into a plurality of planes according to the condition setting process for setting the separation compression conditions and the set separation compression conditions, and compresses each plane. Separation and compression processing is executed. In addition, the control unit 11 generates compressed data including data of each plane after the compression processing, and executes processing designated by the user for the compressed data. Specific processing contents of the control unit 11 will be described in detail later.

記憶部12は、制御部11によって実行されるプログラムを格納するコンピュータ可読な記録媒体を含む。この記憶部12は、具体的にはRAM(Random Access Memory)や、ROM(Read Only Memory)を含んで構成される。   The storage unit 12 includes a computer-readable recording medium that stores a program executed by the control unit 11. Specifically, the storage unit 12 includes a RAM (Random Access Memory) and a ROM (Read Only Memory).

操作部13は、キーボードやマウス等であり、ユーザから行われた操作の内容を制御部11に出力する。表示部14は、制御部11から入力される指示に従って画像を表示するディスプレイ等である。通信部15は、制御部11から入力される指示に従い、圧縮データ(圧縮処理後の画像データ)等の種々のデータをネットワークを介して指定された宛先に送信する。また、この通信部15は、ネットワークを介して到来した種々のデータを受信して制御部11に出力する。   The operation unit 13 is a keyboard, a mouse, or the like, and outputs the content of the operation performed by the user to the control unit 11. The display unit 14 is a display that displays an image in accordance with an instruction input from the control unit 11. The communication unit 15 transmits various data such as compressed data (image data after compression processing) to a designated destination via a network in accordance with an instruction input from the control unit 11. Further, the communication unit 15 receives various data received via the network and outputs the data to the control unit 11.

入出力I/F16は、例えばUSB(Universal Serial Bus)インタフェース等であり、スキャナ2やプリンタ3に接続されており、スキャナ2にて読み取られた画像データを制御部11に出力する。また制御部11から入力される指示に従って、画像データをプリンタ3に転送する。   The input / output I / F 16 is, for example, a USB (Universal Serial Bus) interface or the like, and is connected to the scanner 2 and the printer 3, and outputs image data read by the scanner 2 to the control unit 11. Further, the image data is transferred to the printer 3 in accordance with an instruction input from the control unit 11.

ここで制御部11によって実行されるプログラムの具体的な内容について説明する。制御部11によって実行されるプログラムは、図2に機能的に示すように、分離圧縮部21と、情報取得部22と、出力部23とを含んで構成されている。本実施の形態では、処理の対象となる画像データは、例えばネットワークを介して取得され、あるいはスキャナ2にて読み取られて取得され、記憶部12に格納されている。   Here, specific contents of the program executed by the control unit 11 will be described. The program executed by the control unit 11 includes a separation / compression unit 21, an information acquisition unit 22, and an output unit 23, as functionally shown in FIG. In the present embodiment, the image data to be processed is acquired via, for example, a network, or read and acquired by the scanner 2 and stored in the storage unit 12.

分離圧縮部21は、画像データを複数のプレーンに分離する。本実施の形態では、画像データは、基本的に文字・線画部分に係るプレーンと絵柄・背景部分に係るプレーンとの少なくとも2種類を含む複数のプレーンに分離される。また、この分離圧縮部21は、設定された分離圧縮条件に基づいて上記生成した複数のプレーンのデータをそれぞれ圧縮処理し、圧縮処理後のデータを合成して圧縮データを生成し、出力部23に出力する。本実施の形態において特徴的なことは、分離圧縮条件により文字や線画をさらに分離したり、写真とベタ塗りの背景とをさらに分離するなどの処理が行われることである。この分離圧縮部21の具体的な処理の内容は、また後に述べる。   The separation / compression unit 21 separates the image data into a plurality of planes. In the present embodiment, the image data is basically separated into a plurality of planes including at least two types of planes relating to the character / line drawing portion and planes relating to the design / background portion. The separation / compression unit 21 compresses the data of the generated plurality of planes based on the set separation / compression condition, synthesizes the data after the compression processing, generates compressed data, and outputs the output unit 23. Output to. What is characteristic in the present embodiment is that processing such as further separation of characters and line drawings according to separation and compression conditions, and further separation of a photograph and a solid background is performed. The specific processing contents of the separation / compression unit 21 will be described later.

情報取得部22は、処理対象となった画像データに関してユーザから指定された処理の内容を取得し、当該取得した処理の内容に基づいて分離圧縮条件を設定して、分離圧縮部21に出力する。出力部23は、分離圧縮部21が出力する圧縮データを一つのファイルとして生成し、ユーザから指定された処理に供するため出力する。   The information acquisition unit 22 acquires the processing content designated by the user for the image data to be processed, sets the separation / compression condition based on the acquired processing content, and outputs the separation / compression condition to the separation / compression unit 21. . The output unit 23 generates the compressed data output from the separation / compression unit 21 as one file, and outputs the file for use in processing designated by the user.

ここで分離圧縮部21の具体的内容について説明する。分離圧縮部21は、図3に機能的に示すように、二値化部31と、孤立点除去部32と、マルチプレクサ33と、穴埋処理部34と、蓄積部35と、文字領域検出部36と、文字代表色決定部37と、平滑化処理部38と、選択部39とを含んで構成されている。   Here, the specific content of the separation compression unit 21 will be described. As shown functionally in FIG. 3, the separation and compression unit 21 includes a binarization unit 31, an isolated point removal unit 32, a multiplexer 33, a hole filling processing unit 34, an accumulation unit 35, and a character area detection unit. 36, a character representative color determination unit 37, a smoothing processing unit 38, and a selection unit 39.

二値化部31は、処理対象となった画像データに含まれる各画素について、各画素値の明度がしきい値を越えるものを「白」、越えないものを「黒」など設定して二値化し、二値化後の画素を含む画像データ(二値化データ)として出力する。   The binarization unit 31 sets, for each pixel included in the image data to be processed, “white” that the brightness of each pixel value exceeds a threshold value, “black” or the like that does not exceed the threshold value, and the like. It binarizes and outputs as image data (binarized data) including the binarized pixels.

具体的にこの二値化部31は、色つきの背景中にある文字や、写真部分に含まれる文字等を抽出するために、二値化のしきい値を画像データの局所的な特徴に応じて動的に(例えば移動平均法に基づき、周辺画素の平均輝度値よりも注目画素の輝度値が一定レベル以上高い場合にその画素を「黒」(有意画素)とするなど、以下、浮動二値化方式と呼ぶ)変化させる。尤もこれに限られるものではなく、二値化閾値を画像データ全体で一定とする単純二値化処理であってもよい。   Specifically, the binarization unit 31 sets the binarization threshold according to the local characteristics of the image data in order to extract characters in the colored background, characters included in the photograph portion, and the like. (E.g., based on the moving average method, when the luminance value of the pixel of interest is higher than the average luminance value of the surrounding pixels by a certain level or more, the pixel is set to “black” (significant pixel). This is called a valuation method. However, the present invention is not limited to this, and simple binarization processing may be used in which the binarization threshold is constant for the entire image data.

孤立点除去部32は、二値化データから予め定めた大きさ以下の画素塊を孤立点として除去する。この孤立点除去部の処理の一例を図4を参照しながら説明する。孤立点除去部32は、二値化データの各画素を例えばスキャンライン順(いちばん上のラインの左から右へ、次のラインへ移って左から右へと走査を繰返す順)で注目画素として選択しながら以下の処理を行う。ここで例えば除去する孤立点の大きさを3×3画素以下とする場合、注目画素を中心とする5×5の大きさを有するウィンドウを画定し、注目画素を含む画素塊(なお、ここでは有意画素を黒で図示しているので、この画素塊は黒のかたまりのこととなる)の大きさが3×3以下かどうかを判定する。図4(b)や図4(c)、図4(e)の例は注目画素を含む画素塊の周囲全てが少なくとも1つの白画素で囲まれているので、注目画素を含む画素塊は孤立点であると判断される。図4(d)の場合、ウィンドウ内には3×3画素の画素塊が現れているが、ウィンドウから外れる部分の画素の色が不明であるため、この段階では孤立点かどうかは判断することができない。図4(f)や図4(e)は明らかにウィンドウ内に3×3を超える大きさの画素塊が現れているので注目画素を含むウィンドウ内の画素は孤立点ではないと判断される。   The isolated point removing unit 32 removes a pixel block having a predetermined size or less from the binarized data as an isolated point. An example of the processing of the isolated point removal unit will be described with reference to FIG. The isolated point removing unit 32 sets each pixel of the binarized data as a pixel of interest in, for example, a scan line order (an order in which scanning is repeated from left to right of the uppermost line, to the next line, and from left to right). The following processing is performed while selecting. Here, for example, when the size of an isolated point to be removed is 3 × 3 pixels or less, a window having a size of 5 × 5 centering on the pixel of interest is defined, and a pixel block including the pixel of interest (here, Since significant pixels are illustrated in black, it is determined whether or not the size of this pixel block is 3 × 3 or less. In the examples of FIG. 4B, FIG. 4C, and FIG. 4E, the entire pixel block including the target pixel is surrounded by at least one white pixel, so that the pixel block including the target pixel is isolated. Judged to be a point. In the case of FIG. 4D, a pixel block of 3 × 3 pixels appears in the window. However, since the color of the pixel outside the window is unknown, it is determined at this stage whether or not it is an isolated point. I can't. In FIG. 4 (f) and FIG. 4 (e), since a pixel block having a size exceeding 3 × 3 appears in the window, it is determined that the pixel in the window including the target pixel is not an isolated point.

孤立点除去部32は、孤立点と判断した画素塊を構成する画素を、有意画素でないものとして白画素に設定する。これにより、例えば網点画像を二値化したときに、網部分が有意画素となって、二値化画像をそのまま文字・線画の形状データとして扱えなくなることを防止する。   The isolated point removal unit 32 sets the pixels constituting the pixel block determined to be an isolated point as white pixels as non-significant pixels. Thus, for example, when the halftone image is binarized, the halftone portion becomes a significant pixel, and the binarized image can be prevented from being handled as character / line drawing shape data as it is.

なお、このように孤立点を除去する方法に代えて、又はこの孤立点除去の方法とともに、二値化データに対して公知のレイアウト解析処理(文字列の配列を検出する処理)を行い、文字を含むと推定される領域を検出し、当該領域(文字領域)内の有意画素からなる画像データを選択データとしてもよい。   Instead of the isolated point removal method as described above, or together with this isolated point removal method, a known layout analysis process (process for detecting the arrangement of character strings) is performed on the binarized data to obtain a character. It is also possible to detect an area estimated to contain the image data and to select image data consisting of significant pixels in the area (character area) as selection data.

つまり、これら二値化部31及び孤立点除去部32の処理により、文字・線画を構成する画素が検出され、当該画素のみを含んでなる画像データが選択データとして出力される。   That is, by the processing of the binarization unit 31 and the isolated point removal unit 32, the pixels constituting the character / line image are detected, and image data including only the pixels is output as selection data.

マルチプレクサ33は、処理対象となった画像データの画素のうち、選択データにおいて有意画素となっている画素を抽出して得た画像データを前景データとして出力する。また、処理対象となった画像データの画素のうち、選択データにおいて有意画素となっていない画素に関する画素を抽出して得た画像データを背景データとして出力する。具体的に図5(a)に示すように、「JAPAN」の文字列と、日本地図とが含まれる画像データについては、まず、図5(c)に示すような選択データが生成される(一般に絵柄部分を構成する画素はその周辺の画素に比して明度差が少ないため、この選択データは文字部分を含むデータとなる)。   The multiplexer 33 outputs, as foreground data, image data obtained by extracting pixels that are significant pixels in the selection data from the pixels of the image data to be processed. In addition, image data obtained by extracting pixels related to pixels that are not significant pixels in the selection data among the pixels of the image data to be processed is output as background data. Specifically, as shown in FIG. 5A, for image data including a character string “JAPAN” and a map of Japan, first, selection data as shown in FIG. In general, since the pixels constituting the pattern portion have a smaller brightness difference than the surrounding pixels, this selection data is data including a character portion).

元の画像データから選択データによって特定される部分を抽出した前景データは、図5(b)に示すようなものとなる。なお、図5では、色の相違をハッチングを違えて示している。一方、背景データは図5(d)に示すようなものとなる。このとき、図5(d)の画像データでは、「JAPAN」の文字があった位置の画素値は設定されておらず、いわば「穴」となっている。   The foreground data obtained by extracting the part specified by the selection data from the original image data is as shown in FIG. In FIG. 5, the difference in color is shown with different hatching. On the other hand, the background data is as shown in FIG. At this time, in the image data of FIG. 5D, the pixel value at the position where the character “JAPAN” was found is not set, so to say “hole”.

穴埋処理部34は、背景データのうち、この画素値の設定されていない、穴の部分を周辺の画素値に設定する処理である。具体的には、背景データの各画素をラスタスキャン順にスキャンし、選択データが有意でない画素から有意画素へ遷移したときに、その直前の画素値を記憶しておき、当該記憶している画素値を穴の部分の画素として設定する。   The hole filling processing unit 34 is a process of setting a hole portion in the background data where the pixel value is not set to the peripheral pixel value. Specifically, each pixel of the background data is scanned in raster scan order, and when the selection data transitions from a non-significant pixel to a significant pixel, the immediately preceding pixel value is stored, and the stored pixel value Is set as the pixel of the hole.

蓄積部35は、選択データと、前景データと、穴埋処理後の背景データとを記憶部12に格納して保持する。このように分離処理の途中経過でのデータを記憶部12に格納しておくことで、後に分離圧縮条件を変更して処理を行いたい場合に、画像データを再度処理する必要がなくなる。   The storage unit 35 stores the selection data, foreground data, and background data after the hole filling process in the storage unit 12 and holds them. By storing the data in the middle of the separation process in the storage unit 12 in this way, it is not necessary to process the image data again when it is desired to change the separation compression condition later.

文字領域検出部36は、記憶部12から選択データを読み出して、選択データ上の画素塊をラベリング処理などで検出し、付与した各ラベルに対応する画素の塊ごとに、その外接矩形を画定する。そして、当該画定した外接矩形の情報(当該外接矩形を画定する座標情報)を選択部39に出力するとともに、文字代表色決定部37に出力する。   The character area detection unit 36 reads the selection data from the storage unit 12, detects a pixel block on the selection data by a labeling process or the like, and defines a circumscribed rectangle for each pixel block corresponding to each given label. . Then, information on the defined circumscribed rectangle (coordinate information demarcating the circumscribed rectangle) is output to the selection unit 39 and also output to the character representative color determination unit 37.

文字代表色決定部37は、画定された文字・線画毎の外接矩形の各々に対応する前景データ内の画素の値を調べ、画素値のヒストグラム(発生頻度)を生成し、このヒストグラムにおいて最も高い頻度で出現する一つの画素値、又は所定しきい値(例えば注目基本矩形内の画素数の1/3など)を超える頻度で出現する少なくとも一つの画素値を代表画素値として定める。そして各矩形に固有に発行した識別子に関連づけて、その矩形内の画素を用いて決定した代表画素値を代表画素値データベースとして記憶部12に格納する。   The character representative color determination unit 37 examines pixel values in the foreground data corresponding to each circumscribed rectangle for each defined character / line drawing, generates a pixel value histogram (occurrence frequency), and has the highest value in this histogram. One pixel value that appears at a frequency or at least one pixel value that appears at a frequency exceeding a predetermined threshold value (for example, 1/3 of the number of pixels in the target basic rectangle) is determined as a representative pixel value. Then, the representative pixel value determined using the pixels in the rectangle is stored in the storage unit 12 as a representative pixel value database in association with the identifier issued to each rectangle.

さらに文字代表色決定部37は、代表画素値データベースに格納されている代表画素値を、互いに同一と判断される色ごとにグループ化する。具体的に、代表画素値データベースに格納されている代表画素値のうち、未だグループ化されていない代表画素値を注目代表画素値とし、この注目代表画素値とは異なる代表画素値であって、未だグループ化されていない代表画素値を順次、比較対照画素値として選択する。そして注目代表画素値と同一の色と判断できる比較対照画素値(色空間上の距離が所定距離しきい値未満であるなど)があった場合には、当該少なくとも一つの比較対照画素値と注目代表画素値とを一つのグループとして決定する。そしてグループとなった代表画素値に関連づけられた矩形の識別子を代表画素値データベースから取り出して、矩形の識別子のリストを生成し、注目代表画素値と比較対照画素値とに基づいて決定される一つのグループ代表画素値を決定する。さらに文字代表色決定部37は、固有のグループ識別子を発行し、このグループ識別子と、グループ代表画素値と、上記生成した矩形の識別子のリストとを関連づけて同一色領域情報データベースとして、記憶部12に格納する。なおグループ代表画素値の決定方法は、例えば注目代表画素値と、それに同一と判断された比較対照画素値との統計演算結果(例えば平均)の画素値などとすることができる。   Further, the character representative color determination unit 37 groups the representative pixel values stored in the representative pixel value database for each color determined to be the same. Specifically, among representative pixel values stored in the representative pixel value database, a representative pixel value that has not yet been grouped is set as a representative pixel value of interest, and is a representative pixel value different from the representative pixel value of interest, Representative pixel values that are not yet grouped are sequentially selected as comparison pixel values. If there is a comparison pixel value that can be determined to be the same color as the representative pixel value of interest (for example, a distance in the color space is less than a predetermined distance threshold), the at least one comparison pixel value and The representative pixel value is determined as one group. Then, a rectangular identifier associated with the grouped representative pixel value is extracted from the representative pixel value database, a list of rectangular identifiers is generated, and the one is determined based on the representative pixel value of interest and the comparison pixel value. One group representative pixel value is determined. Further, the character representative color determination unit 37 issues a unique group identifier, and associates the group identifier, the group representative pixel value, and the generated list of rectangular identifiers as the same color region information database, and stores the storage unit 12. To store. Note that the group representative pixel value determination method may be, for example, a pixel value of a statistical calculation result (for example, an average) between a target representative pixel value and a comparison pixel value determined to be the same.

一方、注目代表画素値と同一の色と判断できる比較対照画素値がなかった場合には、注目代表画素値のみからなるグループを生成する。この場合は、注目代表画素値に関連づけられた基本矩形の識別子を代表画素値データベースから取り出し、注目代表画素値をそのままグループ代表画素値として決定する。そして固有のグループ識別子を発行し、このグループ識別子と、グループ代表画素値と、上記生成した矩形の識別子とを関連づけて、同一色領域情報データベースとして記憶部12に格納する。   On the other hand, when there is no comparison pixel value that can be determined to be the same color as the representative pixel value of interest, a group including only the representative pixel value of interest is generated. In this case, the identifier of the basic rectangle associated with the target representative pixel value is extracted from the representative pixel value database, and the target representative pixel value is determined as it is as the group representative pixel value. A unique group identifier is issued, and the group identifier, the group representative pixel value, and the generated rectangular identifier are associated with each other and stored in the storage unit 12 as the same color area information database.

こうして文字代表色決定部37は、グループ化された代表画素値(グループ代表画素値)ごとに、当該代表画素値(グループ代表画素値)と当該代表画素値に対応した領域を画定する情報(ここでは領域の識別子)とを関連づけた情報を含む同一色領域情報を生成し、これを記憶部12に同一色領域情報データベースとして格納することになる。   In this way, the character representative color determining unit 37 defines, for each grouped representative pixel value (group representative pixel value), the representative pixel value (group representative pixel value) and an area corresponding to the representative pixel value (here. Then, the same color area information including information associated with the area identifier) is generated and stored in the storage unit 12 as the same color area information database.

さらに文字代表色決定部37は、グループごとに関連付けられた領域にさらに外接する矩形をグループ矩形として画定する。またここでは、選択データ全体から文字・線画毎の外接矩形を抽出する例について述べたが、選択データについてレイアウト解析の処理を行い、レイアウト解析処理によって抽出されたレイアウト要素(文字列領域)ごとに上記処理を行ってもよい。   Further, the character representative color determination unit 37 defines a rectangle that further circumscribes the area associated with each group as a group rectangle. In this example, the circumscribed rectangle for each character / line drawing is extracted from the entire selection data. However, layout analysis processing is performed on the selection data, and each layout element (character string area) extracted by the layout analysis processing is described. The above processing may be performed.

これによると、図6に示すように、2つのレイアウト要素が画定された場合に、その内部で同一の色と判定される文字ごとにそれらを含む矩形領域が画定されることとなる。つまり、矩形Xからはグループごとの矩形X1,X2が画定され、矩形Yからはグループごとの矩形Y1,Y2が画定される。なお、図6では、「K」の文字は黒色、「R」の文字は赤、「B」の文字は青色としていずれも同一の色と判定される文字であるとしている。   According to this, as shown in FIG. 6, when two layout elements are defined, a rectangular region including them is defined for each character determined to have the same color inside. That is, rectangles X1 and X2 for each group are defined from the rectangle X, and rectangles Y1 and Y2 for each group are defined from the rectangle Y. In FIG. 6, it is assumed that the character “K” is black, the character “R” is red, and the character “B” is blue.

文字代表色決定部37は、画定したグループ矩形と、当該グループ矩形に関連付けられた代表画素値(グループ代表画素値)とを選択部39に出力する。   The character representative color determination unit 37 outputs the defined group rectangle and the representative pixel value (group representative pixel value) associated with the group rectangle to the selection unit 39.

平滑化処理部38は、前景データのうち、この画素値の設定されていない、穴の部分を周辺の画素値に設定する処理である。具体的には、前景データの各画素をラスタスキャン順にスキャンし、選択データが有意画素から有意でない画素へ遷移したときに、その直前の画素値を記憶しておき、当該記憶している画素値を穴の部分の画素として設定する。   The smoothing processing unit 38 is a process of setting a hole portion in the foreground data, for which the pixel value is not set, to the peripheral pixel value. Specifically, each pixel of the foreground data is scanned in raster scan order, and when the selection data transitions from a significant pixel to an insignificant pixel, the pixel value immediately before that is stored, and the stored pixel value Is set as the pixel of the hole.

つまり、穴埋処理部34と平滑化処理部38とにおける動作を模式的に表すと、図7(a)に示すように、入力データがスキャン順にD1からD32まで読出され、選択データ(図7(b))が有意画素(前景)と、有意でない画素(背景)となっているとき、平滑化処理を経た前景データは、図7(c)に示すように、当初は画素値が設定されない(「00」)となっているが選択データが「前景」となっている間は、入力データそのものとなる。そして選択データが「背景」になると、その直前のデータ値が連続的に配列されるようになる。   That is, when the operations in the hole filling processing unit 34 and the smoothing processing unit 38 are schematically shown, as shown in FIG. 7A, the input data is read from D1 to D32 in the scan order, and the selection data (FIG. 7) is displayed. When (b)) is a significant pixel (foreground) and an insignificant pixel (background), foreground data that has undergone smoothing processing is initially not set to a pixel value, as shown in FIG. 7C. (“00”), while the selected data is “foreground”, the input data itself is used. When the selected data becomes “background”, the data values immediately before the selected data are continuously arranged.

また、背景データも穴埋処理が行われる結果、図7(d)に示すように同様に、選択データが「背景」となっている間は、入力データそのものとなる。そして選択データが「前景」になると、その直前のデータ値が連続的に配列されるようになる。   Also, as a result of the hole filling process being performed on the background data, as shown in FIG. 7D, the input data itself is the same as long as the selection data is “background”. When the selected data becomes “foreground”, the data values immediately before the selected data are continuously arranged.

選択部39は、文字領域検出部36から文字・線画ごとの矩形を画定する情報の入力を受け、文字代表色決定部37から画定したグループ矩形と、当該グループ矩形に関連付けられた代表画素値(グループ代表画素値)との入力を受け、平滑化処理部38から平滑化処理後の前景データの入力を受ける。また、この選択部39は、選択データと背景データとを記憶部12から読出す。   The selection unit 39 receives input of information defining a rectangle for each character / line drawing from the character region detection unit 36, receives a group rectangle defined from the character representative color determination unit 37, and a representative pixel value ( Group representative pixel values) and foreground data after smoothing processing from the smoothing processing unit 38. The selection unit 39 reads selection data and background data from the storage unit 12.

選択部39は、情報取得部22から入力された分離圧縮条件に基づいて、各情報を選択的に出力する。   The selection unit 39 selectively outputs each piece of information based on the separation and compression condition input from the information acquisition unit 22.

具体的に、情報取得部22は、画像データの転送先に関する情報をユーザから受け入れ、転送先ごとに予め定められ、記憶部12に格納されている分離圧縮条件を設定する。ここで転送先は、例えば出力先の種別(プリンタ、記憶部12などの別)を示す情報、電子メールのアドレス(本発明のアドレス情報の一例に相当する)、転送先のネットワークアドレス(これもまた本発明のアドレス情報の一例に相当する)などによって特定される。   Specifically, the information acquisition unit 22 receives information about the transfer destination of the image data from the user, and sets the separation compression condition that is predetermined for each transfer destination and stored in the storage unit 12. Here, the transfer destination is, for example, information indicating the type of output destination (printer, storage unit 12 or the like), an e-mail address (corresponding to an example of address information of the present invention), a network address of the transfer destination (also this It corresponds to an example of address information of the present invention).

また、分離圧縮条件は、転送先への転送に用いられるプロトコルの種別に関連付けて記憶部12に格納されていてもよい。ここでプロトコルの種別とは、LPR(プリンタへの転送に用いるプロトコルの一種)、SMTP(電子メールやインターネットFAXなど、電子メールシステムを用いたデータ転送に用いるプロトコル)等の別である。   The separation / compression condition may be stored in the storage unit 12 in association with the type of protocol used for transfer to the transfer destination. Here, the type of protocol is different from LPR (a type of protocol used for transfer to a printer), SMTP (a protocol used for data transfer using an e-mail system such as e-mail and Internet FAX), and the like.

本実施の形態では、文字・線画の扱いにおいて高画質モードと高圧縮モードとがある。すなわち、高圧縮モードでは、選択部39は、文字・線画を同一の色と識別されるグループごとに分離したもの(文字代表色決定部37が出力する情報)を選択的に用い、グループ矩形内の選択データをMMRやJBIG等の方式で圧縮処理し、グループごとの矩形を画定する情報と、グループに関連付けられたグループ代表色の情報とを出力する。   In the present embodiment, there are a high image quality mode and a high compression mode for handling characters and line drawings. That is, in the high compression mode, the selection unit 39 selectively uses a character / line drawing separated for each group that is identified as the same color (information output by the character representative color determination unit 37). The selected data is compressed by a method such as MMR or JBIG, and information for defining a rectangle for each group and group representative color information associated with the group are output.

また、高画質モードでは、選択部39は、選択データと平滑化処理した前景データとを選択的に用い、選択データをMMR圧縮するとともに、平滑化処理後の前景データを多値可逆圧縮(色情報を含むデータを可逆圧縮)又はJPEG圧縮したものを出力する。   In the high image quality mode, the selection unit 39 selectively uses the selected data and the smoothed foreground data, performs MMR compression on the selected data, and multilevel reversible compression (color color) on the smoothed foreground data. Data including information is reversibly compressed) or JPEG compressed.

このように高圧縮モードでは、文字・線画のプレーンについて利用されている色数を低減して限定色化処理を行うことで、圧縮率を向上する代りに、本来の色とは変わってしまうため、画質は一般に劣化する。なお、選択部39は、背景データについては、JPEG圧縮して出力する。   In this way, in the high compression mode, the number of colors used for the text / line drawing plane is reduced and the limited color processing is performed, so that the original color is changed instead of improving the compression rate. The image quality generally deteriorates. Note that the selection unit 39 outputs the background data after JPEG compression.

通常、電子メールにて送信する際には、電子メールシステムにおける転送容量の制限があるから、高圧縮モードのデータが用いられることが好ましい。またプリンタや記憶部12(ディスク装置など)、ファイルサーバ等へ転送する際には、後の再利用に配慮して高画質モードのデータが用いられることが好ましい。そこで、例えば電子メールシステムでの転送を表すSMTPのプロトコルに、高圧縮モードとするための分離圧縮条件、つまり文字代表色決定部37が出力する情報を選択的に用いて圧縮処理する旨の分離圧縮条件を関連付けて記憶部12に格納する。   Normally, when sending by e-mail, there is a limitation on transfer capacity in the e-mail system, so it is preferable to use high compression mode data. In transferring to a printer, storage unit 12 (disk device, etc.), file server, etc., it is preferable to use high-quality mode data in consideration of later reuse. For this reason, for example, in the SMTP protocol representing the transfer in the e-mail system, the separation compression condition for setting the high compression mode, that is, the separation indicating that the compression processing is performed selectively using the information output from the character representative color determination unit 37. The compression condition is associated and stored in the storage unit 12.

また、 LPRやFTP(ファイル転送プロトコル)など、プリンタやファイルシステム(記憶部12自身を含む)へのデータ転送に係るプロトコルには、高画質モードとするための分離圧縮条件、つまり選択データと平滑化処理した前景データとを選択的に用いて圧縮処理する旨の分離圧縮条件を関連づけて記憶部12に格納する。   Protocols related to data transfer to a printer or file system (including the storage unit 12 itself) such as LPR and FTP (file transfer protocol) include separation compression conditions for setting a high image quality mode, that is, selected data and smoothing. The separation / compression condition indicating that compression processing is selectively performed using the foreground data subjected to the conversion processing is stored in the storage unit 12 in association with each other.

このように、本実施の形態では分離圧縮条件によっては、出力されるプレーンの数が異なっている。つまり、高画質モードの場合は、選択データのプレーンと平滑化処理した前景データのプレーンと、背景データのプレーンとの3つのプレーンが出力されることとなるが、高圧縮モードの場合は、グループ代表色ごとに生成されたグループ矩形ごとのプレーンと、背景データのプレーンとが出力されることになる。ここでグループ矩形ごとのプレーンの数は、もとの画像データにおいて利用されている文字の色の数に依存するから、出力されるプレーンの数も必ずしも3つにならないのである。   Thus, in the present embodiment, the number of planes to be output varies depending on the separation compression condition. That is, in the high image quality mode, three planes, that is, a selection data plane, a smoothed foreground data plane, and a background data plane are output. In the high compression mode, a group is output. A plane for each group rectangle generated for each representative color and a background data plane are output. Here, since the number of planes for each group rectangle depends on the number of character colors used in the original image data, the number of output planes is not necessarily three.

なお、ここまでの説明では分離圧縮条件として高圧縮モードにおける場合に、文字・線画部分の画像をさらに代表色ごとのグループに分離する例について述べたが、さらに解像度を低減するなどの圧縮処理を行う旨の分離圧縮条件を含んでもよい。この場合、選択部39は、当該分離圧縮条件に基づいて解像度を低減させる変換を行って出力するとともに、元の解像度を表す情報を出力することになる。   In the above description, the example of separating the image of the character / line drawing part into groups for each representative color in the high compression mode as the separation compression condition has been described. However, compression processing such as further reducing the resolution is performed. Separation and compression conditions may be included. In this case, the selection unit 39 performs conversion for reducing the resolution based on the separation and compression condition and outputs the converted information, and also outputs information representing the original resolution.

さらに、ここまでの説明では蓄積部35を設けてデータの再利用を図る場合を示していたが、この蓄積部35は必ずしも必要ではない。すなわち、孤立点除去部32や、マルチプレクサ33、穴埋処理部34が出力する選択データ、前景データ、背景データのそれぞれを、文字領域検出部36や、文字代表色決定部37、平滑化処理部38、選択部39に直接的に出力するようにしても構わない。   Further, the description so far has shown the case where the storage unit 35 is provided to reuse the data, but this storage unit 35 is not necessarily required. That is, the selection data, foreground data, and background data output from the isolated point removal unit 32, the multiplexer 33, and the hole filling processing unit 34 are converted into a character region detection unit 36, a character representative color determination unit 37, and a smoothing processing unit, respectively. 38, and may be directly output to the selection unit 39.

すなわち本実施の形態の画像処理装置1は、図8に示すように動作する。まず処理対象の画像データについて指定される処理の内容を取得する(S1)。例えばユーザが画像データを電子メールで送信する指示を行った場合は「電子メール送信」として処理の内容を特定する。ここで処理の内容の特定は、具体的にはデータ転送処理において利用されるプロトコルの種類(例えば電子メール送信の場合はSMTP)などで行う。なお、この処理の内容は、例えば図9に示すようなインタフェースを提示して受け入れてもよい。   That is, the image processing apparatus 1 according to the present embodiment operates as shown in FIG. First, the contents of the process designated for the image data to be processed are acquired (S1). For example, when the user gives an instruction to send image data by e-mail, the content of the process is specified as “e-mail transmission”. Here, the contents of the process are specifically identified by the type of protocol used in the data transfer process (for example, SMTP in the case of e-mail transmission). The contents of this processing may be accepted by presenting an interface as shown in FIG. 9, for example.

そして、画像処理装置1は、処理対象となったビットマップの画像データの各画素に基づき、選択データと、前景データと、背景データとを含む、いわゆる三層MRCデータを生成する(S2)。   Then, the image processing apparatus 1 generates so-called three-layer MRC data including selection data, foreground data, and background data based on each pixel of bitmap image data to be processed (S2).

次に、画像処理装置1は、処理S1で取得した処理の内容に関連づけられて予め登録されている分離圧縮条件を参照して、それが「高画質モード」の条件であるか否かを調べる(S3)。ここで、「高画質モード」でなければ(本実施の形態では2つの分離圧縮条件のいずれかであるので)「高圧縮モード」であるとして、選択データに基づいて文字・線画部分の前景データをさらに色別のデータに多層化する(S4)。これにより文字・線画部分の画像が限定色化されるとともに、色を特定する情報と、二値のビットマップ(並びに当該ビットマップの配置位置を表す座標情報)とを含む各層に分離され、圧縮率が向上することになる(多値の画像ではなくなり、かつ部分的なビットマップからなるデータとなるため)。   Next, the image processing apparatus 1 refers to the separation compression condition registered in advance in association with the content of the process acquired in the process S1, and checks whether it is a condition of “high image quality mode”. (S3). Here, if it is not “high image quality mode” (because it is one of two separation compression conditions in this embodiment), it is assumed that it is “high compression mode”, and the foreground data of the character / line drawing portion is based on the selected data. Is further multi-layered into color-specific data (S4). As a result, the image of the character / line drawing part is limited to a limited color, and is separated into each layer including information specifying the color and binary bitmap (and coordinate information indicating the arrangement position of the bitmap), and compressed. The rate is improved (because it is not a multi-valued image and becomes data consisting of a partial bitmap).

そして画像処理装置1は、処理S4で生成した多層化された色別のデータと選択データ、並びに背景データにそれぞれ圧縮処理を行い、色別の文字・線画プレーン群と、選択データのプレーンと、背景データのプレーンとを得て(S5)、これらのプレーンを合成して圧縮データを生成して(S6)、この圧縮データを指定された処理に供し(S7)、処理を終了する。指定された処理が圧縮データを転送する処理であれば、指定された転送先に当該圧縮データが転送されることになる。   Then, the image processing apparatus 1 performs compression processing on the multi-layered color-specific data and selection data generated in step S4, and the background data, respectively, a character / line drawing plane group for each color, a selection data plane, A background data plane is obtained (S5), these planes are combined to generate compressed data (S6), the compressed data is subjected to a designated process (S7), and the process ends. If the designated process is a process for transferring compressed data, the compressed data is transferred to the designated transfer destination.

一方、処理S3において「高画質モード」であれば、選択データと、前景データと、背景データとにそれぞれ圧縮処理を行い(S8)、選択データのプレーンと、前景データのプレーンと、背景データのプレーンとを得て、これらのプレーンを合成して圧縮データを生成して(S9)、処理S7に移行する。   On the other hand, if it is “high image quality mode” in the processing S3, the selection data, foreground data and background data are respectively compressed (S8), and the selection data plane, foreground data plane and background data are compressed. The planes are obtained, these planes are combined to generate compressed data (S9), and the process proceeds to S7.

なお、処理S6,S9におけるプレーンの合成は、例えばPDF(Portable
Document Format)として合成することができる。例えば高画質モードであれば、まず、背景データのプレーンを伸長して描画する指示を記述する。そして次に、前景データのプレーンと、選択データのプレーンとを伸長して前景データに含まれる画素のうち、対応する画素が選択データ上で有意画素となっている画素のみを選択的に、背景データの描画結果上に上書きさせる指示を記述する。
Note that the synthesis of the planes in steps S6 and S9 is, for example, PDF (Portable
Document Format). For example, in the high image quality mode, first, an instruction to decompress and draw the background data plane is described. Then, the foreground data plane and the selection data plane are expanded to selectively select only the pixels whose corresponding pixels are significant in the selection data from the pixels included in the foreground data. Describe the instruction to overwrite the data rendering result.

このように本実施の形態によると、処理を指定する簡易な操作で、当該処理の内容に応じて予め定められた条件に基づいて圧縮率が調整される。   As described above, according to the present embodiment, the compression rate is adjusted based on a predetermined condition in accordance with the content of the process by a simple operation for designating the process.

本発明の実施の形態に係る画像処理装置の構成ブロック図である。1 is a configuration block diagram of an image processing apparatus according to an embodiment of the present invention. 本発明の実施の形態に係る画像処理装置のプログラムの一例に係る機能ブロック図である。It is a functional block diagram concerning an example of a program of an image processing device concerning an embodiment of the invention. 分離圧縮部の処理内容例を表す機能ブロック図である。It is a functional block diagram showing the example of the processing content of a separation compression part. 孤立点除去処理の処理例を表す説明図である。It is explanatory drawing showing the process example of an isolated point removal process. 画像データの分離例を表す説明図である。It is explanatory drawing showing the example of isolation | separation of image data. 色別のデータに多層化する処理の例を表す説明図である。It is explanatory drawing showing the example of the process multi-layered to the data according to color. 穴埋処理や平滑化処理の処理例を表す説明図である。It is explanatory drawing showing the process example of a hole filling process and a smoothing process. 本発明の実施の形態に係る画像処理装置の処理の例を表すフローチャート図である。It is a flowchart figure showing an example of processing of an image processing device concerning an embodiment of the invention. 処理の内容を受け入れるインタフェースの例を表す説明図である。It is explanatory drawing showing the example of the interface which receives the content of a process.

符号の説明Explanation of symbols

1 画像処理装置、2 スキャナ、3 プリンタ、11 制御部、12 記憶部、13 操作部、14 表示部、15 通信部、16 入出力インタフェース、21 分離圧縮部、22 情報取得部、23 出力部、31 二値化部、32 孤立点除去部、33 マルチプレクサ、34 穴埋処理部、35 蓄積部、36 文字領域検出部、37 文字代表色決定部、38 平滑化処理部、39 選択部。
DESCRIPTION OF SYMBOLS 1 Image processing apparatus, 2 Scanner, 3 Printer, 11 Control part, 12 Storage part, 13 Operation part, 14 Display part, 15 Communication part, 16 Input / output interface, 21 Separation compression part, 22 Information acquisition part, 23 Output part, 31 binarization unit, 32 isolated point removal unit, 33 multiplexer, 34 hole filling processing unit, 35 storage unit, 36 character region detection unit, 37 character representative color determination unit, 38 smoothing processing unit, 39 selection unit.

Claims (5)

処理対象となった画像データを、指定された転送先へ転送する指示を受け入れる手段と、
前記指定された転送先に関連づけられた設定に基づいて、前記画像データを高画質モードで圧縮するか、高圧縮モードで圧縮するかを決定する決定手段と、
文字・線画を構成する画素を表す選択データを生成し、当該選択データについてレイアウト解析の処理を行い、レイアウト解析処理によってレイアウト要素である文字列領域を抽出する手段と、
前記決定により、高画質モードで圧縮すると決定したときには、前記選択データのプレーンと、前記画像データのうち当該選択データの表す部分を抽出した前景データのプレーンと、背景データのプレーンとを、前記指定された転送先へ転送する手段と、
前記決定により、高圧縮モードで圧縮すると決定したときには、前記文字列領域ごとに前記画像データのうち前記選択データの表す部分を抽出した前景データを生成し、当該前景データから、前記文字列領域ごとに同一の色と判定される文字・線画をグループとし、当該グループごとに代表色を決定して限定色化し、前記文字列領域ごとに当該代表色ごとに生成されたグループごとの、もとの画像データにおいて利用されている文字の色の数に依存する数のプレーンと、背景データのプレーンとを、前記指定された転送先へ転送する手段と、
を含むことを特徴とする画像処理装置。
Means for receiving an instruction to transfer the image data to be processed to a designated transfer destination;
Determining means for deciding whether to compress the image data in a high image quality mode or a high compression mode based on a setting associated with the designated transfer destination;
Means for generating selection data representing pixels constituting a character / line drawing, performing layout analysis processing on the selection data, and extracting a character string region which is a layout element by layout analysis processing ;
When it is determined by the determination that the compression is performed in the high image quality mode, the designated data plane, the foreground data plane from which the portion represented by the selection data in the image data is extracted, and the background data plane are specified. Means for forwarding to a designated forwarding destination;
When it is determined by the determination that compression is performed in the high compression mode, foreground data in which a portion represented by the selection data is extracted from the image data for each character string region is generated, and for each character string region from the foreground data. to a group of characters, line drawings, which is determined as the same color, and the color quantization by determining a representative color for each the group, for each of the character string region group to which the generated for each representative color for each original Means for transferring the number of planes depending on the number of character colors used in the image data and the background data plane to the designated transfer destination;
An image processing apparatus comprising:
請求項1に記載の画像処理装置であって、
前記決定手段が、前記転送の処理に係るプロトコルの種別に基づいて前記画像データを高画質モードで圧縮するか、高圧縮モードで圧縮するかを決定することを特徴とする画像処理装置。
The image processing apparatus according to claim 1,
The image processing apparatus, wherein the determining means determines whether to compress the image data in a high image quality mode or a high compression mode based on a protocol type related to the transfer process.
請求項1に記載の画像処理装置であって、
前記決定手段が、前記転送先のアドレス情報に基づいて前記画像データを高画質モードで圧縮するか、高圧縮モードで圧縮するかを決定することを特徴とする画像処理装置。
The image processing apparatus according to claim 1,
The image processing apparatus, wherein the determining means determines whether to compress the image data in a high image quality mode or a high compression mode based on the address information of the transfer destination.
処理対象となった画像データを、指定された転送先へ転送する指示を受け入れ、
前記指定された転送先に関連づけられた設定に基づいて、前記画像データを高画質モードで圧縮するか、高圧縮モードで圧縮するかを決定し、
文字・線画を構成する画素を表す選択データを生成し、当該選択データについてレイアウト解析の処理を行い、レイアウト解析処理によってレイアウト要素である文字列領域を抽出し、
前記決定により、高画質モードで圧縮すると決定したときには、前記選択データのプレーンと、前記画像データのうち当該選択データの表す部分を抽出した前景データのプレーンと、背景データのプレーンとを、前記指定された転送先へ転送し、
前記決定により、高圧縮モードで圧縮すると決定したときには、前記文字列領域ごとに前記画像データのうち前記選択データの表す部分を抽出した前景データを生成し、当該前景データから、前記文字列領域ごとに同一の色と判定される文字・線画をグループとし、当該グループごとに代表色を決定して限定色化し、前記文字列領域ごとに当該代表色ごとに生成されたグループごとの、もとの画像データにおいて利用されている文字の色の数に依存する数のプレーンと、背景データのプレーンとを、前記指定された転送先へ転送することを特徴とする画像処理方法。
Accept the instruction to transfer the image data to be processed to the specified transfer destination,
Determining whether to compress the image data in a high-quality mode or a high-compression mode based on a setting associated with the designated transfer destination;
Generates selection data representing pixels constituting the character / line drawing, performs layout analysis processing on the selection data, extracts a character string area that is a layout element by layout analysis processing,
When it is determined by the determination that the compression is performed in the high image quality mode, the designated data plane, the foreground data plane from which the portion represented by the selection data in the image data is extracted, and the background data plane are specified. To the specified transfer destination,
When it is determined by the determination that compression is performed in the high compression mode, foreground data in which a portion represented by the selection data is extracted from the image data for each character string region is generated, and for each character string region from the foreground data. to a group of characters, line drawings, which is determined as the same color, and the color quantization by determining a representative color for each the group, for each of the character string region group to which the generated for each representative color for each original An image processing method, wherein a number of planes depending on the number of character colors used in image data and a background data plane are transferred to the designated transfer destination.
コンピュータを、
処理対象となった画像データを、指定された転送先へ転送する指示を受け入れる手段と、
前記指定された転送先に関連づけられた設定に基づいて、前記画像データを高画質モードで圧縮するか、高圧縮モードで圧縮するかを決定する決定手段と、
文字・線画を構成する画素を表す選択データを生成し、当該選択データについてレイアウト解析の処理を行い、レイアウト解析処理によってレイアウト要素である文字列領域を抽出する手段と、
前記決定により、高画質モードで圧縮すると決定したときには、前記選択データのプレーンと、前記画像データのうち当該選択データの表す部分を抽出した前景データのプレーンと、背景データのプレーンとを、前記指定された転送先へ転送する手段と、
前記決定により、高圧縮モードで圧縮すると決定したときには、前記文字列領域ごとに前記画像データのうち前記選択データの表す部分を抽出した前景データを生成し、当該前景データから、前記文字列領域ごとに同一の色と判定される文字・線画をグループとし、当該グループごとに代表色を決定して限定色化し、前記文字列領域ごとに当該代表色ごとに生成されたグループごとの、もとの画像データにおいて利用されている文字の色の数に依存する数のプレーンと、背景データのプレーンとを、前記指定された転送先へ転送する手段と、
として機能させることを特徴とするプログラム。
Computer
Means for receiving an instruction to transfer the image data to be processed to a designated transfer destination;
Determining means for deciding whether to compress the image data in a high image quality mode or a high compression mode based on a setting associated with the designated transfer destination;
Means for generating selection data representing pixels constituting a character / line drawing, performing layout analysis processing on the selection data, and extracting a character string region which is a layout element by layout analysis processing ;
When it is determined by the determination that the compression is performed in the high image quality mode, the designated data plane, the foreground data plane from which the portion represented by the selection data in the image data is extracted, and the background data plane are specified. Means for forwarding to a designated forwarding destination;
When it is determined by the determination that compression is performed in the high compression mode, foreground data in which a portion represented by the selection data is extracted from the image data for each character string region is generated, and for each character string region from the foreground data. to a group of characters, line drawings, which is determined as the same color, and the color quantization by determining a representative color for each the group, for each of the character string region group to which the generated for each representative color for each original Means for transferring the number of planes depending on the number of character colors used in the image data and the background data plane to the designated transfer destination;
A program characterized by functioning as
JP2004138674A 2004-05-07 2004-05-07 Image processing device Expired - Fee Related JP4375106B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004138674A JP4375106B2 (en) 2004-05-07 2004-05-07 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004138674A JP4375106B2 (en) 2004-05-07 2004-05-07 Image processing device

Publications (2)

Publication Number Publication Date
JP2005323066A JP2005323066A (en) 2005-11-17
JP4375106B2 true JP4375106B2 (en) 2009-12-02

Family

ID=35470012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004138674A Expired - Fee Related JP4375106B2 (en) 2004-05-07 2004-05-07 Image processing device

Country Status (1)

Country Link
JP (1) JP4375106B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7773803B2 (en) * 2006-05-11 2010-08-10 Xerox Corporation Effective coding of page boundary for MRC/MECCA segmentation
JP4926118B2 (en) * 2008-04-21 2012-05-09 シャープ株式会社 Image compression apparatus, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4707022B2 (en) 2009-03-27 2011-06-22 富士ゼロックス株式会社 Image processing apparatus and image processing program
JP4780215B2 (en) 2009-03-27 2011-09-28 富士ゼロックス株式会社 Image processing apparatus and image processing program

Also Published As

Publication number Publication date
JP2005323066A (en) 2005-11-17

Similar Documents

Publication Publication Date Title
US5881168A (en) Image processing apparatus method and system for converting character codes of character images extracted from an original image and positions of the images for transmission
US6426809B1 (en) Image transmitting system and image transmitting method
US8395813B2 (en) Subtractive color method, subtractive color processing apparatus, image forming apparatus, and computer-readable storage medium for computer program
US8503036B2 (en) System and method of improving image quality in digital image scanning and printing by reducing noise in output image data
US20090284801A1 (en) Image processing apparatus and image processing method
JP2005045404A (en) Image processor and method, and program
JP2008099149A (en) Image processor, image processing method and image processing program
US8670623B2 (en) Image processing apparatus, image conversion method, and computer-readable storage medium for computer program based on calculated degree of complexity
JP5893379B2 (en) Image compression apparatus, image compression method, and computer program
JP6892625B2 (en) Data processing equipment and computer programs
JPH11164153A (en) Image processor and image processing method
JP4375106B2 (en) Image processing device
JP4442701B2 (en) Area discriminating method, image compressing method, image compressing apparatus, and computer program
US7302097B2 (en) MRC image compression
JP3940890B2 (en) Image processing apparatus and image processing method
JP3815214B2 (en) Image processing apparatus and storage medium storing screen processing program
JP4228905B2 (en) Image processing apparatus and program
US11924390B2 (en) Apparatus, method, and storage medium for performing color reduction processing
JP7185451B2 (en) Image processing device, image processing method, and program
JP2005244649A (en) Image processing apparatus
JP4165599B2 (en) Image processing device
JP3882657B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded
JP2006262258A (en) Image processor, and image processing method and program
JP3882603B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded
JP2007189275A (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070419

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20071112

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090303

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090526

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090722

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090818

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090831

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120918

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120918

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130918

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees