JPH11259636A - Image conversion method - Google Patents

Image conversion method

Info

Publication number
JPH11259636A
JPH11259636A JP10062710A JP6271098A JPH11259636A JP H11259636 A JPH11259636 A JP H11259636A JP 10062710 A JP10062710 A JP 10062710A JP 6271098 A JP6271098 A JP 6271098A JP H11259636 A JPH11259636 A JP H11259636A
Authority
JP
Japan
Prior art keywords
data
image
area
attribute value
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10062710A
Other languages
Japanese (ja)
Inventor
Koichi Ejiri
公一 江尻
Katsushi Morimoto
勝士 森本
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP10062710A priority Critical patent/JPH11259636A/en
Publication of JPH11259636A publication Critical patent/JPH11259636A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide the new image converting method which is suitable for the data compression of an artificial image such as a CG image. SOLUTION: To each area where pixels having the same attribute value in an image are connected, 2-bit codes (00, 01, 10, and 11) which do not overlap with other areas are assigned and a pair of 2-bit coded data representing the pixels in each area with the assigned two-bit codes and data of the attribute values made to correspond to respective areas one to one are generated as conversion data. High compressibility is obtained for a color image of CG, etc., having a small number of areas. Area information of the source image is saved in the 2-bit coded data 203 in directly usable form.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理に係り、
特に、各画素の属性値が3ビット以上で表現された画像
のデータ圧縮又はメモリ圧縮に有効な画像変換に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to image processing,
In particular, the present invention relates to image conversion that is effective for data compression or memory compression of an image in which the attribute value of each pixel is represented by 3 bits or more.

【0002】[0002]

【従来の技術】一般に画像データはデータサイズが大き
く、カラー画像では特にそうである。通常、カラースキ
ャナーは原稿をRGB各原色成分を8ビットの信号(1
画素あたり24ビット)として読み取るので、読み取り
解像度が400dpiの場合は、A4判原稿の画像デー
タは48MBと非常に大きなサイズになり、それを処理
する場合には、作業領域を含めると必要なメモリ容量は
48MBの数倍にもなる。このような画像データは、保
存したり伝送したりする場合に、データ圧縮を施す必要
性が高い。
2. Description of the Related Art Generally, image data has a large data size, especially in a color image. Normally, a color scanner converts an original into 8-bit signals (1 bit) for each of RGB primary color components.
(24 bits per pixel), so if the reading resolution is 400 dpi, the image data of the A4 size document becomes very large at 48 MB, and when processing it, the necessary memory capacity including the work area is required. Is several times the size of 48 MB. When storing or transmitting such image data, it is highly necessary to perform data compression.

【0003】従来から、画像データの圧縮手法として、
離散コサイン変換をベースとしたJPEG、サブバンド
符号化、ウェーブレット変換など種々の方法が考案さ
れ、また実用化されている。これらの手法は、基本的に
画素の相関を利用してデータ圧縮を図るものであるが、
それぞれに一長一短がある。例えば、JPEGは自然画
像には適しているが、人工的画像(CG画像がアニメー
ション画像など)では圧縮率が悪いなどと指摘されてい
る。また、一般に高い圧縮率を得ようとすると非可逆圧
縮になり、原画像の一部情報を復元できない。
[0003] Conventionally, as a method for compressing image data,
Various methods such as JPEG, sub-band coding, and wavelet transform based on discrete cosine transform have been devised and put into practical use. These methods basically use the correlation of pixels to achieve data compression.
Each has its pros and cons. For example, it has been pointed out that JPEG is suitable for natural images, but has a low compression ratio for artificial images (CG images are animation images, etc.). In general, if a high compression ratio is to be obtained, lossy compression is performed, and it is not possible to restore some information of the original image.

【0004】[0004]

【発明が解決しようとする課題】本発明の目的は、従来
の画像圧縮手法とは全く異なった視点に立って、画像デ
ータを圧縮する新規な画像変換方法を提供することにあ
る。本発明のもう一つの目的は、CG画像のような人工
的画像を、損失を伴わずに高い圧縮率でデータ圧縮可能
な画像変換方法を提供することにある。本発明の他の目
的は、画像の領域情報が直接利用可能な形で保存された
圧縮データを得られる画像変換方法を提供することにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a novel image conversion method for compressing image data from a completely different viewpoint from the conventional image compression method. It is another object of the present invention to provide an image conversion method capable of compressing an artificial image such as a CG image at a high compression ratio without loss. It is another object of the present invention to provide an image conversion method capable of obtaining compressed data in which image area information can be directly used.

【0005】[0005]

【課題を解決するための手段】前記目的を達成するため
の本発明の骨子は、画像上の同一属性値を持つ画素が連
結した各領域に隣接した他の領域と重複しない2ビット
コードを割り当て、各領域内の各画素を割り当てられた
2ビットコードで表現したデータを生成するとともに、
各領域と1対1に対応させた属性値のデータを生成し、
画像を2ビットコード化データと属性値データの組に変
換することである。
The gist of the present invention for achieving the above object is to allocate a 2-bit code which does not overlap with other areas adjacent to each area where pixels having the same attribute value on an image are connected. , Generates data in which each pixel in each area is represented by an assigned 2-bit code,
Generate attribute value data corresponding to each area on a one-to-one basis,
To convert an image into a set of 2-bit coded data and attribute value data.

【0006】[0006]

【発明の実施の形態】図1は、本発明の一実施例におけ
る処理の流れと関連データとを示すフローチャートであ
る。まず、ステップ100において、処理対象の画像デ
ータ200が入力される。次のステップ101におい
て、入力された画像データ200に対する領域分割処理
が実行され、ラベリングデータ201と領域データ20
2が作成される。次のステップ102において、ラベリ
ングデータ201と領域データ202を参照して2ビッ
トコード化データ203が作成される。最後に、ステッ
プ103において、領域データ202中の属性値データ
と2ビットコード化データ203の組が、画像データ2
02の変換データとして出力される。
FIG. 1 is a flowchart showing a processing flow and related data according to an embodiment of the present invention. First, in step 100, image data 200 to be processed is input. In the next step 101, an area division process is performed on the input image data 200, and the labeling data 201 and the area data 20 are input.
2 is created. In the next step 102, 2-bit coded data 203 is created with reference to the labeling data 201 and the area data 202. Finally, in step 103, the set of attribute value data and 2-bit coded data 203 in the area data 202 is
02 is output as the converted data.

【0007】図2に画像データ200の一例を模式的に
示す。図2において、個々の格子が1つの画素に相当
し、各格子内に記載された文字「ア」〜「カ」は画素の
属性値を表し、同じ文字は同じ属性値を意味する。属性
値とは、濃度、輝度、色などの画素の持つ特性もしは性
質を表す値である。一例をあげれば、カラー画像の各画
素の属性値は、RGB各原色成分につき8ビット、合計
24ビットで表現される。一般的に、データ圧縮効果が
得られるのは、各画素の属性値が3ビット以上で表現さ
れた画像データに本発明が適用された場合である。
FIG. 2 schematically shows an example of the image data 200. In FIG. 2, each grid corresponds to one pixel, and characters “A” to “F” described in each grid represent pixel attribute values, and the same character means the same attribute value. The attribute value is a value representing a characteristic or property of a pixel, such as density, luminance, and color. As an example, the attribute value of each pixel of the color image is expressed by 8 bits for each RGB primary color component, for a total of 24 bits. Generally, a data compression effect is obtained when the present invention is applied to image data in which the attribute value of each pixel is expressed by 3 bits or more.

【0008】ステップ101の領域分割処理において
は、画像データ200上で同一の属性値を持つ画素の連
結(4連結)した領域を抽出し、各領域にID番号を付
与するとともに、各領域内の画素位置に同領域のID番
号と同じラベルを書き込んだラベリングデータ201を
作成する。図2に例示した画像データ200に対するラ
ベリングデータ201を図3に示す。図3において、個
々の格子は画像データ200の各画素に1対1に対応
し、格子内の数字はラベル(=ID番号)である。図3
から理解されるように、同一属性値の領域は、画像デー
タ200の左上から右下へ向かって順に抽出され、抽出
順にID番号が付けられている。このような領域分割
(ラベリング)処理は公知の手法によればよいので、詳
細な説明は割愛する。ただし、領域間の境界判定は4連
結で行う。
In the area dividing process in step 101, a connected (four connected) area of pixels having the same attribute value is extracted from the image data 200, an ID number is assigned to each area, and an ID number is assigned to each area. Labeling data 201 is created in which the same label as the ID number of the same area is written at the pixel position. FIG. 3 shows labeling data 201 for the image data 200 illustrated in FIG. In FIG. 3, each grid has a one-to-one correspondence with each pixel of the image data 200, and the numbers in the grid are labels (= ID numbers). FIG.
As can be understood from the above, regions having the same attribute value are sequentially extracted from the upper left to the lower right of the image data 200, and are assigned ID numbers in the extraction order. Since such a region division (labeling) process may be performed by a known method, a detailed description is omitted. However, the boundary between the regions is determined by four connections.

【0009】また、ステップ101において、領域分割
処理と並行して領域データ202が作成される。図2の
画像データ200に対する領域データ202の例を図4
に示す。この例は表形式で示されているが、データ形式
は任意でよい。図4において、「領域ID」フィールド
には各領域のID番号が設定され、「隣接領域ID」フ
ィールドには各領域に隣接する他の領域のID番号が設
定される。「属性値」フィールドには各領域の画素の属
性値が設定される。「属性値」フィールドの設定は、例
えば領域分割処理において新たな領域を検出した時点で
行われる。このようにすれば、画像データ200に直接
ラベルを書き込むことによってラベリングデータ201
を作成することが可能である(この場合、領域分割処理
が完了した段階で画像データ200そのものは失われる
が、各領域の属性値はラベリングデータ201中に保存
されるので支障はない)。あるいは、領域分割処理にお
いては「属性値」フィールドを空欄にしておき、ステッ
プ102の2ビットコード化処理において「属性値」フ
ィールドを設定するようにしてもよい。また、「2ビッ
トコード」フィールドは、領域分割処理の段階では空欄
のままであり、2ビットコード化処理において領域に割
り当てられた2ビットコードが設定される。
In step 101, area data 202 is created in parallel with the area dividing process. FIG. 4 shows an example of the area data 202 for the image data 200 of FIG.
Shown in Although this example is shown in a table format, the data format may be arbitrary. In FIG. 4, the ID number of each area is set in the “area ID” field, and the ID numbers of other areas adjacent to each area are set in the “adjacent area ID” field. In the "attribute value" field, the attribute value of the pixel in each area is set. The setting of the “attribute value” field is performed, for example, when a new area is detected in the area division processing. By doing so, the labeling data 201 can be written by directly writing the label on the image data 200.
(In this case, the image data 200 itself is lost when the area division processing is completed, but there is no problem since the attribute value of each area is stored in the labeling data 201). Alternatively, the "attribute value" field may be left blank in the area dividing process, and the "attribute value" field may be set in the 2-bit coding process of step 102. The “2-bit code” field is left blank at the stage of the area division processing, and the 2-bit code assigned to the area in the 2-bit coding processing is set.

【0010】ステップ102においては、領域分割処理
によって分割された各領域に、隣接する(4連結する)
他の領域と重複しない2ビットコード(00,01,10,11の
いずれか1つ)を割り当て、その2ビットコードを領域
内の各画素位置に書き込んだ2ビットコード化データ2
03を作成する。どのような領域の位置関係でも領域数
がどのように多くても、ハーケンとアッペルにより証明
された「4色定理」によって、重複のない2ビットコー
ドの割り当てが可能である。各領域に2ビットコードが
割り当てられると、その2ビットコードが領域データ2
02の対応した「2ビットコード」フィールドに設定さ
れる。図2に示す画像データ200に対して作成される
2ビットコード化データ203の例を図5に示す。
In step 102, each area divided by the area dividing process is adjacent (four connected).
2-bit coded data 2 in which a 2-bit code (any one of 00, 01, 10, and 11) that does not overlap with other areas is assigned, and the 2-bit code is written at each pixel position in the area.
03 is created. Regardless of the positional relationship of any region and the number of regions, the "four-color theorem" proved by Haken and Appel allows assignment of 2-bit codes without duplication. When a 2-bit code is assigned to each area, the 2-bit code is assigned to area data 2
02 is set in the corresponding "2-bit code" field. FIG. 5 shows an example of 2-bit coded data 203 created for the image data 200 shown in FIG.

【0011】この2ビットコード化は例えば次のような
手順で行われる。まず、領域データ202(図4)の
「隣接領域ID」フィールドを参照し、各領域に、隣接
領域と重複しない2ビットコードを割り当てる。例え
ば、隣接領域数が多い領域を優先して2ビットコードの
割り当てを行い、途中で重複が避けられなくなった時に
は、前の段階に戻って2ビットコードの割り当てをし直
すという試行錯誤の手順によって、全ての領域に隣接領
域との重複のない2ビットコードを割り当てる。図2の
画像データ200の場合、例えば図4に示すように各領
域に2ビットコードが割り当てられる。
The two-bit coding is performed, for example, in the following procedure. First, a 2-bit code that does not overlap with an adjacent area is assigned to each area with reference to the “adjacent area ID” field of the area data 202 (FIG. 4). For example, by assigning a 2-bit code with priority to an area having a large number of adjacent areas, and when duplication cannot be avoided on the way, the procedure returns to the previous stage and the 2-bit code is assigned again by a trial and error procedure. , All areas are assigned 2-bit codes that do not overlap with adjacent areas. In the case of the image data 200 in FIG. 2, for example, as shown in FIG. 4, a 2-bit code is assigned to each area.

【0012】このようにして各領域への2ビットコード
の割り当てが終わると、2ビット化データ203の生成
を行う。これは例えば次のような手順によって実行され
る。ラベリングデータ201(図3)を左上からラスタ
走査し、未処理のラベルを探す。左上の画素位置Aに未
処理のラベル0が見つかる。領域データ202のID=
0の領域の「2ビットコード」フィールドに設定されて
いる2ビットコード「00」を、2ビットコード化データ
203のラベル0の領域に書き込む。なお、領域分割の
ステップ101で領域データ202の「属性値」フィー
ルドが設定されない場合には、この2ビットコード化の
段階で当該領域の属性値を画像データ200から読み取
り、これを「属性値」フィールドに設定する。画素位置
Aの次の画素位置からラベリングデータ201のラスタ
走査を再開し、未処理のラベルを探す。画素位置Bに未
処理のラベル1が見つかるので、領域データ202のI
D=1の領域の「2ビットコード」フィールドに設定さ
れている2ビットコード「01」を、2ビットコード化デ
ータ203のラベル1の領域に書き込む。次に画素位置
Bの次の画素位置からラスタ走査を再開し、画素位置C
で未処理のラベル2が見つかるので、2ビットコード化
データ203のラベル2の領域に2ビットコード「11」
を書き込む。以下同様の手順を繰り返すことにより、図
5に示す2ビットコード化データ203が得られる。
When the 2-bit code is assigned to each area in this manner, 2-bit data 203 is generated. This is performed by the following procedure, for example. The labeling data 201 (FIG. 3) is raster-scanned from the upper left to search for unprocessed labels. An unprocessed label 0 is found at the upper left pixel position A. ID of area data 202 =
The 2-bit code “00” set in the “2-bit code” field of the area 0 is written to the area of the label 0 of the 2-bit coded data 203. If the "attribute value" field of the area data 202 is not set in the area division step 101, the attribute value of the area is read from the image data 200 at the stage of the 2-bit coding, and is read as the "attribute value". Set in the field. The raster scanning of the labeling data 201 is restarted from the pixel position next to the pixel position A, and an unprocessed label is searched. Since an unprocessed label 1 is found at the pixel position B, the I
The 2-bit code “01” set in the “2-bit code” field of the area of D = 1 is written in the area of label 1 of the 2-bit coded data 203. Next, the raster scanning is restarted from the pixel position next to the pixel position B, and the pixel position C
, An unprocessed label 2 is found, so that the 2-bit code “11” is stored in the label 2 area of the 2-bit coded data 203.
Write. Thereafter, by repeating the same procedure, 2-bit coded data 203 shown in FIG. 5 is obtained.

【0013】ステップ103においては、図2に示した
画像データ200の場合、図5に示した2ビットコード
化データ203と、図4に示した領域データ202の
「属性値」フィールドに設定された属性値を領域ID番
号順に並べたもの、すなわち各領域と1対1に対応させ
た属性値のデータ204の組が、変換データとして出力
される。
In step 103, in the case of the image data 200 shown in FIG. 2, the 2-bit coded data 203 shown in FIG. 5 and the "attribute value" field of the area data 202 shown in FIG. 4 are set. A set of attribute values arranged in the order of the area ID numbers, that is, a set of attribute value data 204 corresponding to each area on a one-to-one basis is output as conversion data.

【0014】画像データの画素数をn、画素の属性値の
ビット数をB、領域数をNとすると、変換データ中の2
ビットコード化データの総ビット数は2×n、属性値デ
ータの総ビット数はB×Nであり、従って変換データの
総ビット数は 2×n+B×N となる。元の画像データの総ビット数は B×n となる。CG画像などの人工的なカラー画像において
は、B=24ビット、n=10の6乗、N<10の4
乗、が代表的な値である。この場合、本発明によれば画
像データを約1/12にデータ圧縮した変換データが得
られる。しかも、非損失である。元の画像データの属性
値のビット数がさらに大きければ、データ圧縮率はさら
に大きくなる。
Assuming that the number of pixels of the image data is n, the number of bits of the pixel attribute value is B, and the number of regions is N, 2 in the converted data
The total number of bits of the bit coded data is 2 × n, and the total number of bits of the attribute value data is B × N. Therefore, the total number of bits of the converted data is 2 × n + B × N. The total number of bits of the original image data is B × n. In an artificial color image such as a CG image, B = 24 bits, n = 10 to the sixth power, and N <10 = 4
The power is a representative value. In this case, according to the present invention, converted data obtained by compressing image data to about 1/12 is obtained. Moreover, there is no loss. If the number of bits of the attribute value of the original image data is further increased, the data compression ratio will be further increased.

【0015】このように本発明によれば画像の非損失圧
縮が可能であるが、さらに、変換データ中の2ビットコ
ード化データに、原画像の領域情報が直接利用可能な形
で保存されているという利点もある。例えば、本発明に
よってカラー文書画像などをデータ圧縮した場合、圧縮
データから直接的に(原画像を復元することなしに)同
一色の文字線などの領域を認識することができ、そのよ
うな処理のためのメモリ領域及び時間を大幅に削減短縮
できる。
As described above, according to the present invention, lossless compression of an image is possible. Further, the area information of the original image is stored in the 2-bit coded data in the converted data in a form that can be directly used. There is also the advantage that there is. For example, when a color document image or the like is compressed according to the present invention, regions such as character lines of the same color can be directly recognized from the compressed data (without decompressing the original image). Memory area and time can be greatly reduced.

【0016】本発明による変換データから元の画像デー
タを復元するには、上に述べた変換手順と逆の手順によ
ればよい。すなわち、例えば図5の2ビットコード化デ
ータ203を左上からラスタ走査する。最初の画素位置
Aの2ビットコード「00」と、それに4連結する同じコ
ードを、属性値データ204の最初の属性値「ア」に変
換する。画素位置Aの次の画素位置からラスタ走査を再
開し、未処理の画素位置Bの2ビットコード「01」を検
出すると、同コードと、それに4連結する同じコードを
属性値データ204の2番目の属性値「イ」に変換す
る。このような手順を繰り返すことにより、元の画像デ
ータ200と全く同じ画像データを復元できる。
In order to restore the original image data from the converted data according to the present invention, a procedure reverse to the above-described conversion procedure may be used. That is, for example, the 2-bit coded data 203 in FIG. 5 is raster-scanned from the upper left. The two-bit code “00” at the first pixel position A and the same four-connected code are converted into the first attribute value “A” of the attribute value data 204. When the raster scanning is restarted from the pixel position next to the pixel position A and the 2-bit code “01” at the unprocessed pixel position B is detected, the same code and the same code that is connected to the same 4 times in the attribute value data 204 To the attribute value "i". By repeating such a procedure, the same image data as the original image data 200 can be restored.

【0017】なお、損失が許される場合には、画像の属
性値をより少ない階調数又は色数に量子化して領域数を
減らした後に、本発明を適用してもよく、このようにす
れば属性値が複雑に変化する画像でも高い圧縮率を達成
することができる。また、本発明はビットプレーン画像
に適用することも可能である。すなわち、属性値が複雑
に変化する画像でも、ビットプレーンに分割すれば、値
が頻繁に変化するのは下位のビットプレーンであり、上
位側のビットプレーンでは同じ値が連続する部分が多い
ので、上位側のビットプレーンを何枚かまとめて本発明
により圧縮し、下位側のビットプレーンを他の適当な方
法によって圧縮するという方法も効果的なデータ圧縮方
法である。
When a loss is allowed, the present invention may be applied after the attribute value of an image is quantized to a smaller number of gradations or colors to reduce the number of regions. Thus, a high compression ratio can be achieved even for an image whose attribute value changes in a complicated manner. Further, the present invention can be applied to a bit plane image. In other words, even in an image in which the attribute values change in a complicated manner, if the image is divided into bit planes, the value frequently changes in the lower bit plane, and in the upper bit plane, there are many portions where the same value is continuous. A method of compressing several higher-order bit planes together and compressing the lower-order bit planes by another appropriate method is also an effective data compression method.

【0018】また、本発明の画像変換方法は従来の他の
画像圧縮手法と組み合わせることも容易である。例え
ば、本発明による画像の変換データに従来の適当な符号
化方法を適用することにより、さらに情報量を削減する
ことができる。画像の離散コサイン変換データなどの変
換データに対し、本発明の画像変換を適用することも可
能である。
The image conversion method of the present invention can be easily combined with other conventional image compression methods. For example, the amount of information can be further reduced by applying a conventional appropriate encoding method to the converted image data according to the present invention. The image conversion of the present invention can be applied to conversion data such as discrete cosine conversion data of an image.

【0019】以上に述べた本発明の画像変換処理は、専
用のハードウェアによって実現することも可能である
が、例えば図5に示すようなCPU300、メモリ30
1、入力インターフェイス302、出力インターフェイ
ス303、フロッピーディスクやCD−ROMなどの情
報記録媒体305のドライブ304などをバス306で
接続したような一般的なコンピュータ上で、ソフトウエ
ア処理により実現することも可能である。この場合、図
1に示した各処理ステップ100〜103の処理手順を
遂行させるための画像変換プログラム310が、例え
ば、それが記録された情報記録媒体305よりドライブ
304によって読み込まれてメモリ301にロードさ
れ、実行される。画像データ200、ラベリングデータ
201、領域データ202、2ビットコード化データ2
03の記憶域として、メモリ301の特定の領域が利用
される。変換すべき画像データ200は、例えば入力イ
ンターフェイス302を介して外部のスキャナなどから
入力される。変換データは、例えば出力インターフェイ
ス303を介して外部の補助記憶装置やプリンタなどに
出力され、あるいはドライブ304を介してフロッピー
ディスクなどの情報記録媒体305に書き出される。
The above-described image conversion processing of the present invention can be realized by dedicated hardware. For example, the CPU 300 and the memory 30 as shown in FIG.
1. An input interface 302, an output interface 303, a drive 304 of an information recording medium 305 such as a floppy disk or a CD-ROM, and the like can be realized by software processing on a general computer connected via a bus 306. It is. In this case, the image conversion program 310 for executing the processing procedure of each of the processing steps 100 to 103 shown in FIG. 1 is read, for example, by the drive 304 from the information recording medium 305 on which it is recorded and loaded into the memory 301. Is executed. Image data 200, labeling data 201, area data 202, 2-bit coded data 2
As the storage area 03, a specific area of the memory 301 is used. The image data 200 to be converted is input from an external scanner or the like via the input interface 302, for example. The converted data is output to, for example, an external auxiliary storage device or a printer via an output interface 303, or written to an information recording medium 305 such as a floppy disk via a drive 304.

【0020】[0020]

【発明の効果】以上の説明から明らかな如く、請求項1
又は2記載の発明の画像変換方法は、従来の画像圧縮手
法とは全く異なった視点に立脚したものであり、損失の
ない画像データ圧縮が可能であり、特に、領域数が比較
的少ないCG画像のような人工的画像に対しては、高圧
縮率の非損失圧縮が可能である。また、変換データ中の
2ビットコード化データには原画像の領域情報が直接利
用可能な形で保存されるため、例えばカラー文書画像な
どを変換した場合、変換データから直接的に(原画像を
復元することなしに)同一色の文字線などの領域を認識
することができ、そのような処理のためのメモリ領域及
び処理時間を大幅に削減短縮できる。さらに、この画像
変換方法による変換データは、極めて簡単な手順によっ
て原画像データを復元することができる。また、この画
像変換方法は従来の画像圧縮手法と組合せて適用するこ
とも容易である。また、請求項3記載の発明の情報記録
媒体によれば、一般的なコンピュータを利用して、上に
述べたような画像変換を容易に実行することができる。
As is apparent from the above description, claim 1
Alternatively, the image conversion method according to the invention described in 2 is based on a completely different viewpoint from the conventional image compression method, enables lossless image data compression, and particularly, a CG image having a relatively small number of regions. For an artificial image such as, lossless compression with a high compression ratio is possible. Further, since the area information of the original image is stored in the 2-bit coded data in the converted data in a form that can be directly used, for example, when a color document image is converted, the original image is directly converted from the converted data. Regions such as character lines of the same color can be recognized (without restoration), and the memory area and processing time for such processing can be significantly reduced. Further, original image data can be restored from the converted data by this image conversion method by a very simple procedure. Also, this image conversion method can be easily applied in combination with a conventional image compression method. According to the information recording medium of the third aspect of the present invention, it is possible to easily execute the above-described image conversion using a general computer.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例の処理フローと関連データを
示すフローチャートである。
FIG. 1 is a flowchart showing a processing flow and related data according to an embodiment of the present invention.

【図2】入力される画像データの一例を模式的に示す図
である。
FIG. 2 is a diagram schematically illustrating an example of input image data.

【図3】ラベリングデータの一例を示す図である。FIG. 3 is a diagram illustrating an example of labeling data.

【図4】領域データの一例を示す図である。FIG. 4 is a diagram showing an example of area data.

【図5】2ビットコード化データの一例を示す図であ
る。
FIG. 5 is a diagram showing an example of 2-bit coded data.

【図6】コンピュータを利用してソフトウエア処理によ
り本発明を実施する例を示すブロック図である。
FIG. 6 is a block diagram showing an example of implementing the present invention by software processing using a computer.

【符号の説明】[Explanation of symbols]

200 画像データ 201 ラベリングデータ 202 領域データ 203 2ビットコード化データ 204 属性値データ 300 CPU 301 メモリ 302 入力インターフェイス 303 出力インターフェイス 304 ドライブ 305 情報記録媒体 310 画像変換プログラム Reference Signs List 200 image data 201 labeling data 202 area data 203 2-bit coded data 204 attribute value data 300 CPU 301 memory 302 input interface 303 output interface 304 drive 305 information recording medium 310 image conversion program

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 画像上の同一属性値を持つ画素が連結し
た各領域に隣接した他の領域と重複しない2ビットコー
ドを割り当て、各領域内の各画素を割り当てられた2ビ
ットコードで表現したデータと、各領域と1対1に対応
させた属性値のデータとの組に画像を変換することを特
徴とする画像変換方法。
1. A two-bit code that does not overlap with another region adjacent to each region where pixels having the same attribute value on an image are connected, and each pixel in each region is represented by the allocated two-bit code. An image conversion method, comprising: converting an image into a set of data and attribute value data corresponding to each area on a one-to-one basis.
【請求項2】 各画素の属性値が3ビット以上で表現さ
れた画像の変換方法であって、画像を同一属性値を持つ
画素が連結した領域に分割するステップと、分割された
各領域内の画素を隣接した他の領域と重複しない2ビッ
トコードで表現したデータを生成するステップと、分割
された各領域と1対1に対応させた属性値のデータを生
成するステップとを有することを特徴とする画像変換方
法。
2. A method for converting an image in which the attribute value of each pixel is represented by 3 bits or more, comprising: dividing the image into regions in which pixels having the same attribute value are connected; Generating data represented by a 2-bit code that does not overlap with other adjacent areas, and generating attribute value data corresponding to each of the divided areas on a one-to-one basis. Characteristic image conversion method.
【請求項3】 請求項2記載の画像変換方法の各ステッ
プの処理をコンピュータに実行させるためのプログラム
が記録されたことを特徴とする機械読み取り可能な情報
記録媒体。
3. A machine-readable information recording medium on which a program for causing a computer to execute the processing of each step of the image conversion method according to claim 2 is recorded.
JP10062710A 1998-03-13 1998-03-13 Image conversion method Pending JPH11259636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10062710A JPH11259636A (en) 1998-03-13 1998-03-13 Image conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10062710A JPH11259636A (en) 1998-03-13 1998-03-13 Image conversion method

Publications (1)

Publication Number Publication Date
JPH11259636A true JPH11259636A (en) 1999-09-24

Family

ID=13208162

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10062710A Pending JPH11259636A (en) 1998-03-13 1998-03-13 Image conversion method

Country Status (1)

Country Link
JP (1) JPH11259636A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020038006A (en) * 2000-11-16 2002-05-23 윤춘영 Extraction of numbers out of a image
JP2006323870A (en) * 2006-07-26 2006-11-30 Sharp Corp Image subtracting device, image encoding device, image decoding device, image subtracting method, image encoding method, and image decoding method
JP2006341446A (en) * 2005-06-08 2006-12-21 Canon Inc Image processing apparatus and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020038006A (en) * 2000-11-16 2002-05-23 윤춘영 Extraction of numbers out of a image
JP2006341446A (en) * 2005-06-08 2006-12-21 Canon Inc Image processing apparatus and method
JP2006323870A (en) * 2006-07-26 2006-11-30 Sharp Corp Image subtracting device, image encoding device, image decoding device, image subtracting method, image encoding method, and image decoding method

Similar Documents

Publication Publication Date Title
JP5558767B2 (en) Image processing apparatus and processing method thereof
JP2922680B2 (en) Compressed image storage method for high-resolution computer graphics
US8553301B2 (en) Image processing apparatus, method, and program product to perform color-reduction processing for a block
US7236636B2 (en) Image compression method, image restoration method, program and apparatus
JP2010103681A (en) Image processing device and method
JP3461309B2 (en) Huffman coded data compression device
US8953220B2 (en) Image processing for rotation of compressed image data
US6798914B1 (en) Neural-network-based method of image compression
JP2020123917A (en) Image processing program, image processing apparatus, and image processing method
JP3872217B2 (en) Dither image binary expression processing method, dither image compression binary expression decompression method, and dither image compression and decompression system
JPH11259636A (en) Image conversion method
JP3707419B2 (en) Image compression apparatus, image compression method, image expansion apparatus, and program
JPH08180180A (en) Electronic filing equipment
US8494261B2 (en) Image processing apparatus, image processing method, and computer-readable medium
US7359071B2 (en) Image data processing device
JPH08223428A (en) Image data compressor and image data expander
JP3520166B2 (en) Image processing device
JPH11127356A (en) Image iterative transform decoding apparatus and method, and recording medium
JP2570249B2 (en) Color image compression / decompression method
JP4860558B2 (en) Encoding apparatus and encoding method
JP2005260420A (en) Data compression apparatus and data compression program
JP6701845B2 (en) Image processing apparatus and image processing program
JPH11136522A (en) Image iterative transform decoding apparatus and method, and recording medium
JPH09200536A (en) Coder and decoder
JP2001230934A (en) Code compression method, code compression device, image processing device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040928

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050208