JP4375106B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- 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
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においては、圧縮率を高めたり、画質を向上させる方法については定めがなく、圧縮処理の具体的な方法については実装ごとに異なっているのが現状である。
この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
制御部11は、CPU(Central Processing Unit)などで実現でき、記憶部12に格納されているプログラムに従って動作する。具体的にこの制御部11は、分離圧縮条件を設定する条件設定処理と、当該設定された分離圧縮条件に従って、処理対象となった画像データを複数のプレーンに分離し、各プレーンの圧縮を行う分離圧縮処理とを実行する。また、この制御部11は、圧縮処理後の各プレーンのデータを含む圧縮データを生成し、当該圧縮データについてユーザから指定された処理を実行する。これらの制御部11の具体的な処理の内容は後に詳しく述べる。
The
記憶部12は、制御部11によって実行されるプログラムを格納するコンピュータ可読な記録媒体を含む。この記憶部12は、具体的にはRAM(Random Access Memory)や、ROM(Read Only Memory)を含んで構成される。
The
操作部13は、キーボードやマウス等であり、ユーザから行われた操作の内容を制御部11に出力する。表示部14は、制御部11から入力される指示に従って画像を表示するディスプレイ等である。通信部15は、制御部11から入力される指示に従い、圧縮データ(圧縮処理後の画像データ)等の種々のデータをネットワークを介して指定された宛先に送信する。また、この通信部15は、ネットワークを介して到来した種々のデータを受信して制御部11に出力する。
The
入出力I/F16は、例えばUSB(Universal Serial Bus)インタフェース等であり、スキャナ2やプリンタ3に接続されており、スキャナ2にて読み取られた画像データを制御部11に出力する。また制御部11から入力される指示に従って、画像データをプリンタ3に転送する。
The input / output I /
ここで制御部11によって実行されるプログラムの具体的な内容について説明する。制御部11によって実行されるプログラムは、図2に機能的に示すように、分離圧縮部21と、情報取得部22と、出力部23とを含んで構成されている。本実施の形態では、処理の対象となる画像データは、例えばネットワークを介して取得され、あるいはスキャナ2にて読み取られて取得され、記憶部12に格納されている。
Here, specific contents of the program executed by the
分離圧縮部21は、画像データを複数のプレーンに分離する。本実施の形態では、画像データは、基本的に文字・線画部分に係るプレーンと絵柄・背景部分に係るプレーンとの少なくとも2種類を含む複数のプレーンに分離される。また、この分離圧縮部21は、設定された分離圧縮条件に基づいて上記生成した複数のプレーンのデータをそれぞれ圧縮処理し、圧縮処理後のデータを合成して圧縮データを生成し、出力部23に出力する。本実施の形態において特徴的なことは、分離圧縮条件により文字や線画をさらに分離したり、写真とベタ塗りの背景とをさらに分離するなどの処理が行われることである。この分離圧縮部21の具体的な処理の内容は、また後に述べる。
The separation /
情報取得部22は、処理対象となった画像データに関してユーザから指定された処理の内容を取得し、当該取得した処理の内容に基づいて分離圧縮条件を設定して、分離圧縮部21に出力する。出力部23は、分離圧縮部21が出力する圧縮データを一つのファイルとして生成し、ユーザから指定された処理に供するため出力する。
The
ここで分離圧縮部21の具体的内容について説明する。分離圧縮部21は、図3に機能的に示すように、二値化部31と、孤立点除去部32と、マルチプレクサ33と、穴埋処理部34と、蓄積部35と、文字領域検出部36と、文字代表色決定部37と、平滑化処理部38と、選択部39とを含んで構成されている。
Here, the specific content of the
二値化部31は、処理対象となった画像データに含まれる各画素について、各画素値の明度がしきい値を越えるものを「白」、越えないものを「黒」など設定して二値化し、二値化後の画素を含む画像データ(二値化データ)として出力する。
The
具体的にこの二値化部31は、色つきの背景中にある文字や、写真部分に含まれる文字等を抽出するために、二値化のしきい値を画像データの局所的な特徴に応じて動的に(例えば移動平均法に基づき、周辺画素の平均輝度値よりも注目画素の輝度値が一定レベル以上高い場合にその画素を「黒」(有意画素)とするなど、以下、浮動二値化方式と呼ぶ)変化させる。尤もこれに限られるものではなく、二値化閾値を画像データ全体で一定とする単純二値化処理であってもよい。
Specifically, the
孤立点除去部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
孤立点除去部32は、孤立点と判断した画素塊を構成する画素を、有意画素でないものとして白画素に設定する。これにより、例えば網点画像を二値化したときに、網部分が有意画素となって、二値化画像をそのまま文字・線画の形状データとして扱えなくなることを防止する。
The isolated
なお、このように孤立点を除去する方法に代えて、又はこの孤立点除去の方法とともに、二値化データに対して公知のレイアウト解析処理(文字列の配列を検出する処理)を行い、文字を含むと推定される領域を検出し、当該領域(文字領域)内の有意画素からなる画像データを選択データとしてもよい。 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
マルチプレクサ33は、処理対象となった画像データの画素のうち、選択データにおいて有意画素となっている画素を抽出して得た画像データを前景データとして出力する。また、処理対象となった画像データの画素のうち、選択データにおいて有意画素となっていない画素に関する画素を抽出して得た画像データを背景データとして出力する。具体的に図5(a)に示すように、「JAPAN」の文字列と、日本地図とが含まれる画像データについては、まず、図5(c)に示すような選択データが生成される(一般に絵柄部分を構成する画素はその周辺の画素に比して明度差が少ないため、この選択データは文字部分を含むデータとなる)。
The
元の画像データから選択データによって特定される部分を抽出した前景データは、図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
蓄積部35は、選択データと、前景データと、穴埋処理後の背景データとを記憶部12に格納して保持する。このように分離処理の途中経過でのデータを記憶部12に格納しておくことで、後に分離圧縮条件を変更して処理を行いたい場合に、画像データを再度処理する必要がなくなる。
The storage unit 35 stores the selection data, foreground data, and background data after the hole filling process in the
文字領域検出部36は、記憶部12から選択データを読み出して、選択データ上の画素塊をラベリング処理などで検出し、付与した各ラベルに対応する画素の塊ごとに、その外接矩形を画定する。そして、当該画定した外接矩形の情報(当該外接矩形を画定する座標情報)を選択部39に出力するとともに、文字代表色決定部37に出力する。
The character
文字代表色決定部37は、画定された文字・線画毎の外接矩形の各々に対応する前景データ内の画素の値を調べ、画素値のヒストグラム(発生頻度)を生成し、このヒストグラムにおいて最も高い頻度で出現する一つの画素値、又は所定しきい値(例えば注目基本矩形内の画素数の1/3など)を超える頻度で出現する少なくとも一つの画素値を代表画素値として定める。そして各矩形に固有に発行した識別子に関連づけて、その矩形内の画素を用いて決定した代表画素値を代表画素値データベースとして記憶部12に格納する。
The character representative
さらに文字代表色決定部37は、代表画素値データベースに格納されている代表画素値を、互いに同一と判断される色ごとにグループ化する。具体的に、代表画素値データベースに格納されている代表画素値のうち、未だグループ化されていない代表画素値を注目代表画素値とし、この注目代表画素値とは異なる代表画素値であって、未だグループ化されていない代表画素値を順次、比較対照画素値として選択する。そして注目代表画素値と同一の色と判断できる比較対照画素値(色空間上の距離が所定距離しきい値未満であるなど)があった場合には、当該少なくとも一つの比較対照画素値と注目代表画素値とを一つのグループとして決定する。そしてグループとなった代表画素値に関連づけられた矩形の識別子を代表画素値データベースから取り出して、矩形の識別子のリストを生成し、注目代表画素値と比較対照画素値とに基づいて決定される一つのグループ代表画素値を決定する。さらに文字代表色決定部37は、固有のグループ識別子を発行し、このグループ識別子と、グループ代表画素値と、上記生成した矩形の識別子のリストとを関連づけて同一色領域情報データベースとして、記憶部12に格納する。なおグループ代表画素値の決定方法は、例えば注目代表画素値と、それに同一と判断された比較対照画素値との統計演算結果(例えば平均)の画素値などとすることができる。
Further, the character representative
一方、注目代表画素値と同一の色と判断できる比較対照画素値がなかった場合には、注目代表画素値のみからなるグループを生成する。この場合は、注目代表画素値に関連づけられた基本矩形の識別子を代表画素値データベースから取り出し、注目代表画素値をそのままグループ代表画素値として決定する。そして固有のグループ識別子を発行し、このグループ識別子と、グループ代表画素値と、上記生成した矩形の識別子とを関連づけて、同一色領域情報データベースとして記憶部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
こうして文字代表色決定部37は、グループ化された代表画素値(グループ代表画素値)ごとに、当該代表画素値(グループ代表画素値)と当該代表画素値に対応した領域を画定する情報(ここでは領域の識別子)とを関連づけた情報を含む同一色領域情報を生成し、これを記憶部12に同一色領域情報データベースとして格納することになる。
In this way, the character representative
さらに文字代表色決定部37は、グループごとに関連付けられた領域にさらに外接する矩形をグループ矩形として画定する。またここでは、選択データ全体から文字・線画毎の外接矩形を抽出する例について述べたが、選択データについてレイアウト解析の処理を行い、レイアウト解析処理によって抽出されたレイアウト要素(文字列領域)ごとに上記処理を行ってもよい。
Further, the character representative
これによると、図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
平滑化処理部38は、前景データのうち、この画素値の設定されていない、穴の部分を周辺の画素値に設定する処理である。具体的には、前景データの各画素をラスタスキャン順にスキャンし、選択データが有意画素から有意でない画素へ遷移したときに、その直前の画素値を記憶しておき、当該記憶している画素値を穴の部分の画素として設定する。
The smoothing
つまり、穴埋処理部34と平滑化処理部38とにおける動作を模式的に表すと、図7(a)に示すように、入力データがスキャン順にD1からD32まで読出され、選択データ(図7(b))が有意画素(前景)と、有意でない画素(背景)となっているとき、平滑化処理を経た前景データは、図7(c)に示すように、当初は画素値が設定されない(「00」)となっているが選択データが「前景」となっている間は、入力データそのものとなる。そして選択データが「背景」になると、その直前のデータ値が連続的に配列されるようになる。
That is, when the operations in the hole filling
また、背景データも穴埋処理が行われる結果、図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
選択部39は、情報取得部22から入力された分離圧縮条件に基づいて、各情報を選択的に出力する。
The
具体的に、情報取得部22は、画像データの転送先に関する情報をユーザから受け入れ、転送先ごとに予め定められ、記憶部12に格納されている分離圧縮条件を設定する。ここで転送先は、例えば出力先の種別(プリンタ、記憶部12などの別)を示す情報、電子メールのアドレス(本発明のアドレス情報の一例に相当する)、転送先のネットワークアドレス(これもまた本発明のアドレス情報の一例に相当する)などによって特定される。
Specifically, the
また、分離圧縮条件は、転送先への転送に用いられるプロトコルの種別に関連付けて記憶部12に格納されていてもよい。ここでプロトコルの種別とは、LPR(プリンタへの転送に用いるプロトコルの一種)、SMTP(電子メールやインターネットFAXなど、電子メールシステムを用いたデータ転送に用いるプロトコル)等の別である。
The separation / compression condition may be stored in the
本実施の形態では、文字・線画の扱いにおいて高画質モードと高圧縮モードとがある。すなわち、高圧縮モードでは、選択部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
また、高画質モードでは、選択部39は、選択データと平滑化処理した前景データとを選択的に用い、選択データをMMR圧縮するとともに、平滑化処理後の前景データを多値可逆圧縮(色情報を含むデータを可逆圧縮)又はJPEG圧縮したものを出力する。
In the high image quality mode, the
このように高圧縮モードでは、文字・線画のプレーンについて利用されている色数を低減して限定色化処理を行うことで、圧縮率を向上する代りに、本来の色とは変わってしまうため、画質は一般に劣化する。なお、選択部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
通常、電子メールにて送信する際には、電子メールシステムにおける転送容量の制限があるから、高圧縮モードのデータが用いられることが好ましい。またプリンタや記憶部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
また、 LPRやFTP(ファイル転送プロトコル)など、プリンタやファイルシステム(記憶部12自身を含む)へのデータ転送に係るプロトコルには、高画質モードとするための分離圧縮条件、つまり選択データと平滑化処理した前景データとを選択的に用いて圧縮処理する旨の分離圧縮条件を関連づけて記憶部12に格納する。
Protocols related to data transfer to a printer or file system (including the
このように、本実施の形態では分離圧縮条件によっては、出力されるプレーンの数が異なっている。つまり、高画質モードの場合は、選択データのプレーンと平滑化処理した前景データのプレーンと、背景データのプレーンとの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
さらに、ここまでの説明では蓄積部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
すなわち本実施の形態の画像処理装置1は、図8に示すように動作する。まず処理対象の画像データについて指定される処理の内容を取得する(S1)。例えばユーザが画像データを電子メールで送信する指示を行った場合は「電子メール送信」として処理の内容を特定する。ここで処理の内容の特定は、具体的にはデータ転送処理において利用されるプロトコルの種類(例えば電子メール送信の場合はSMTP)などで行う。なお、この処理の内容は、例えば図9に示すようなインタフェースを提示して受け入れてもよい。
That is, the
そして、画像処理装置1は、処理対象となったビットマップの画像データの各画素に基づき、選択データと、前景データと、背景データとを含む、いわゆる三層MRCデータを生成する(S2)。
Then, the
次に、画像処理装置1は、処理S1で取得した処理の内容に関連づけられて予め登録されている分離圧縮条件を参照して、それが「高画質モード」の条件であるか否かを調べる(S3)。ここで、「高画質モード」でなければ(本実施の形態では2つの分離圧縮条件のいずれかであるので)「高圧縮モード」であるとして、選択データに基づいて文字・線画部分の前景データをさらに色別のデータに多層化する(S4)。これにより文字・線画部分の画像が限定色化されるとともに、色を特定する情報と、二値のビットマップ(並びに当該ビットマップの配置位置を表す座標情報)とを含む各層に分離され、圧縮率が向上することになる(多値の画像ではなくなり、かつ部分的なビットマップからなるデータとなるため)。
Next, the
そして画像処理装置1は、処理S4で生成した多層化された色別のデータと選択データ、並びに背景データにそれぞれ圧縮処理を行い、色別の文字・線画プレーン群と、選択データのプレーンと、背景データのプレーンとを得て(S5)、これらのプレーンを合成して圧縮データを生成して(S6)、この圧縮データを指定された処理に供し(S7)、処理を終了する。指定された処理が圧縮データを転送する処理であれば、指定された転送先に当該圧縮データが転送されることになる。
Then, the
一方、処理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 画像処理装置、2 スキャナ、3 プリンタ、11 制御部、12 記憶部、13 操作部、14 表示部、15 通信部、16 入出力インタフェース、21 分離圧縮部、22 情報取得部、23 出力部、31 二値化部、32 孤立点除去部、33 マルチプレクサ、34 穴埋処理部、35 蓄積部、36 文字領域検出部、37 文字代表色決定部、38 平滑化処理部、39 選択部。
DESCRIPTION OF
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:
前記決定手段が、前記転送の処理に係るプロトコルの種別に基づいて前記画像データを高画質モードで圧縮するか、高圧縮モードで圧縮するかを決定することを特徴とする画像処理装置。 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.
前記決定手段が、前記転送先のアドレス情報に基づいて前記画像データを高画質モードで圧縮するか、高圧縮モードで圧縮するかを決定することを特徴とする画像処理装置。 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
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)
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 |
-
2004
- 2004-05-07 JP JP2004138674A patent/JP4375106B2/en not_active Expired - Fee Related
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 |