JP3850006B2 - Image processing apparatus and image forming apparatus - Google Patents
Image processing apparatus and image forming apparatus Download PDFInfo
- Publication number
- JP3850006B2 JP3850006B2 JP09746699A JP9746699A JP3850006B2 JP 3850006 B2 JP3850006 B2 JP 3850006B2 JP 09746699 A JP09746699 A JP 09746699A JP 9746699 A JP9746699 A JP 9746699A JP 3850006 B2 JP3850006 B2 JP 3850006B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- image
- compression
- image data
- scanning
- 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
Description
【0001】
【発明の属する技術分野】
本発明は、ディジタル複写機やパーソナルコンピュータ等において入力画像データを圧縮処理する画像処理装置及び画像形成装置に関する。
【0002】
【従来の技術】
ディジタル複写機等に用いられ、画像読み取り装置により読み取った入力画像データを圧縮処理しハードディスク等記憶媒体に記憶する画像処理装置にあっては、従来入力画像データの圧縮走査方向は画像読み取り装置による原稿走査方向に依存し、原稿走査方向と同一に固定されていた。
【0003】
【発明が解決しようとする課題】
従来は、画像データの内容にかかわらず画像処理装置内での入力画像データの圧縮方向が固定されていた。このため、入力画像データによっては圧縮効率が悪く圧縮データのサイズが大きくなり、圧縮データの記憶媒体への入出力性能が低下し処理時間を要すると共に、記憶媒体の必要容量が大きくなるという問題を有していた。
【0004】
そこで本発明は上記課題を除去するもので、入力される画像データの特性にかかわらず圧縮効率をより高めて圧縮データを小さくすることにより、データ処理時間の短縮を図り、又記憶媒体の使用容量の低減を図る事を目的とする。
【0005】
【課題を解決するための手段】
本発明は上記課題を解決するための手段として、原稿画像から得られる画像データを入力する画像入力手段と、前記画像入力手段によって入力された前記画像データから前記原稿画像を直交する2方向に走査する事により得られる2つの走査データを抽出する走査データ抽出手段と、前記走査データ抽出手段によって得られる前記2つの走査データの、前記走査方向に沿ったラインにおけるデータ度数を夫々抽出し、この抽出された前記データ度数が所定の上閾値以上である上ライン数及び前記データ度数が所定の下閾値以下である下ライン数を合計し、この合計された合計ライン数が大きいライン方向を平坦ライン方向であると判断する平坦ライン方向判別手段と、前記平坦ライン方向と圧縮走査方向とが一致しない場合には、前記画像データを90°回転処理して、前記平坦ライン方向と前記圧縮走査方向とを一致させる回転手段と、前記平坦ライン方向と前記圧縮走査方向とが一致しない前記画像データは圧縮処理しないで、前記平坦ライン方向と前記圧縮走査方向とが一致する前記画像データを圧縮処理する圧縮手段と、
圧縮手段と、前記圧縮手段により形成される圧縮データを記憶するデータ記億手段と、前記データ記憶手段に記憶される前記圧縮データを伸長処理すると共に前記圧縮データが前記回転手段により回転されている場合には、前記圧縮データを回転処理して前記画像データを復元する復元手段とを具備するものである。
【0006】
また本発明は上記課題を解決するための手段として、原稿画像から得られる画像データを入力する画像入力手段と、前記画像入力手段によって入力された前記画像データから前記原稿画像を直交する2方向に走査する事により得られる2つの走査データを抽出する走査データ抽出手段と、前記走査データ抽出手段によって得られる前記2つの走査データの、前記走査方向に沿ったラインにおけるデータ度数を夫々抽出し、この抽出された前記データ度数が所定の上閾値以上である上ライン数及び前記データ度数が所定の下閾値以下である下ライン数を合計し、この合計された合計ライン数が大きいライン方向を平坦ライン方向であると判断する平坦ライン方向判別手段と、前記平坦ライン方向と圧縮走査方向とが一致しない場合には、前記画像データを90°回転処理して、前記平坦ライン方向と前記圧縮走査方向とを一致させる回転手段と、前記平坦ライン方向と前記圧縮走査方向とが一致しない前記画像データは圧縮処理しないで、前記平坦ライン方向と前記圧縮走査方向とが一致する前記画像データを圧縮処理する圧縮手段と、前記圧縮手段により形成される圧縮データを記憶するデータ記億手段と、前記データ記憶手段に記憶される前記圧縮データを伸長処理すると共に前記圧縮データが前記回転手段により回転されている場合には、前記圧縮データを回転処理して前記画像データを復元する復元手段と、前記復元手段により復元される前記画像データに基づき印刷画像を形成する画像出力手段とを設けるものである。
【0007】
上記構成により本発明は、 入力される画像データの内容に応じて、画像データを効率的な圧縮を得られる方向に回転した後圧縮する事により、圧縮データのサイズを低減して、データ処理時間を短縮し、又記憶媒体の使用容量を低減し、機能向上を図るものである。
【0008】
又本発明は上記課題を解決するための手段として、原稿画像から得られる画像データを入力する画像入力手段と、前記画像入力手段によって入力された前記画像データから前記原稿画像を直交する2方向に走査する事により得られる2つの走査データを抽出する走査データ抽出手段と、前記走査データ抽出手段によって得られる前記2つの走査データ毎に、前記走査方向に沿ったラインにおける差分が、所定の下閾値以下であるライン数の合計が大きい方向を平坦ライン方向であると判断する平坦ライン方向判別手段と、前記平坦ライン方向と圧縮走査方向とが一致しない場合には、前記画像データを90°回転処理して、前記平坦ライン方向と前記圧縮走査方向とを一致させる回転手段と、前記平坦ライン方向と前記圧縮走査方向とが一致しない前記画像データは圧縮処理しないで、前記平坦ライン方向と前記圧縮走査方向とが一致する前記画像データを圧縮処理する圧縮手段と、前記圧縮手段により形成される圧縮データを記憶するデータ記億手段と、前記データ記憶手段に記憶される前記圧縮データを伸長処理すると共に前記圧縮データが前記回転手段により回転されている場合には、前記圧縮データを回転処理して前記画像データを復元する復元手段とを設けるものである。
【0009】
又本発明は上記課題を解決するための手段として、原稿画像から得られる画像データを入力する画像入力手段と、前記画像入力手段によって入力された前記画像データから前記原稿画像を直交する2方向に走査する事により得られる2つの走査データを抽出する走査データ抽出手段と、前記走査データ抽出手段によって得られる前記2つの走査データ毎に、前記走査方向に沿ったラインにおける差分が、所定の下閾値以下であるライン数の合計が大きい方向を平坦ライン方向であると判断する平坦ライン方向判別手段と、前記平坦ライン方向と圧縮走査方向とが一致しない場合には、前記画像データを90°回転処理して、前記平坦ライン方向と前記圧縮走査方向とを一致させる回転手段と、前記平坦ライン方向と前記圧縮走査方向とが一致しない前記画像データは圧縮処理しないで、前記平坦ライン方向と前記圧縮走査方向とが一致する前記画像データを圧縮処理する圧縮手段と、前記圧縮手段により形成される圧縮データを記憶するデータ記億手段と、前記データ記憶手段に記憶される前記圧縮データを伸長処理すると共に前記圧縮データが前記回転手段により回転されている場合には、前記圧縮データを回転処理して前記画像データを復元する復元手段と、前記復元手段により復元される前記画像データに基づき印刷画像を形成する画像出力手段とを設けるものである。
【0010】
上記構成により本発明は、入力される画像データの内容に応じて、画像データを効率的な圧縮を得られる方向に回転した後圧縮する事により、画像データのサイズを低減して、データ処理時間を短縮し、記憶媒体の使用容量を低減し、機能向上を図るものである。
【0011】
【発明の実施の形態】
先ず本発明の原理を図1を参照して説明する。図1はディジタル複写機1のシステム構成を示し、共通バス2により、CPU3には、スキャナ4、プリンタ6、画像処理装置7が接続されている。画像処理装置7は、画像メモリ8、圧縮伸長処理部10、ハードディスク11から成っている。またCPU3にはメモリ12が接続されている。
【0012】
このようなディジタル複写機1にあっては、画像形成時、原稿に対応しその都度一部ずつ通常の複写を行う場合には、スキャナ4により読み取った画像データをそのままプリンタ6に転送して複写画像を得る一方、複数枚の原稿による複数部の複写画像を形成する場合は、スキャナ4により読み取った画像データを、一旦画像処理装置7に記憶した後、この画像処理装置7から順次画像データをプリンタ6に転送し複数部の複写画像を得ている。
【0013】
そして一般に画像処理装置7内での画像データの記憶操作は、「スキャナ4からの画像データを画像メモリ8に一時的に記憶し、次いで圧縮伸長処理部10で圧縮処理し、圧縮された圧縮データをハードディスク11に転送記憶する。」という工程を全ての原稿に対して順次行うことにより実施する。この後プリンタ14により複写画像を印刷形成する際には、圧縮データを記憶する操作と全く逆の工程である、「ハードディスク11に記憶された圧縮データを圧縮伸長処理部10で伸長処理して画像データを復元し、この復元された画像データを画像メモリ8に一時的に記憶し、更に画像メモリ8からプリンタ8に転送する。」という工程を順次行うこととなる。更にこの印刷形成工程を繰り返して必要部数の複写画像を得ている。
【0014】
ここで、画像形成装置1の高速化を図るよう、単位時間あたりの処理画像枚数を多くするためには、画像処理装置7内での画像データのハードディスク11への記憶操作時間及びその読み出し操作時間を短縮するために、圧縮伸長処理部10にて画像データのサイズを極力小さく圧縮する必要がある。また、ハードディスク11の限られた記憶容量を節約するためにも画像1枚あたりの圧縮データを極力小さくする必要がある。
【0015】
一方画像データは、隣接する画素情報がバラバラである場合に比し、同じ要素の画素情報が連続しているデータの方が圧縮効率が高く、例えば、画像データが文字データである場合には、文章方向と垂直方向に圧縮する場合に比し、文章方向に沿って画像圧縮を行うほうが、高いデータ圧縮率を得られる。
【0016】
そこで本発明では、上記原理に基づき、画像データを、同じ要素の画素情報が連続している圧縮効率の高い方向で圧縮走査して、圧縮データサイズを小さくするものである。
【0017】
以下本発明を図2乃至図5に示す第1の実施の形態を参照して説明する。図2は画像形成装置であるディジタル複写機20のシステム構成を示し、共通バス21により、ディジタル複写機20全体を制御するCPU22には、原稿(図示せず)を読み取る画像入力手段であるスキャナ23、画像データを印刷出力する画像出力手段であるプリンタ24、スキャナ23より入力された画像データを画像処理しプリンタ24に転送する画像処理装置25が接続されている。画像処理装置25は、スキャナ23より入力された画像データを一時的に記憶する画像メモリ26、画像データを回転処理する回転処理部27、画像データを圧縮処理または圧縮された画像データを伸長処理する圧縮伸長処理部28、圧縮伸長処理部28により圧縮された圧縮データを記憶するハードディスク30、画像データが文字画像かそれ以外の写真、イラスト等の画像かを判別する文字画像判断部31、文字データの文章方向を判断する文章方向判断部32から成っている。またCPU22には、スキャナ23、プリンタ24及び画像処理装置25等の制御プログラムを記憶するROM及びスキャナ23等からのデータや画像処理条件等を記憶するRAMからなるメモリ33が接続されている。
【0018】
次に作用について述べる。先ず原稿に対応しその都度一部ずつ通常の複写を行う場合は、先ずスキャナ23により原稿画像を読み取り、読み取った画像データを共通バス21を経由してそのままプリンタ24に転送し複写画像を形成する。
【0019】
一方複数枚の原稿を複数部複写するソート機能を用いる複写操作の場合は、複数枚の原稿の画像データを画像処理装置25内に一旦記憶して、この記憶したデータをプリンタ24に転送して複写画像を形成する。即ち、スキャナ23により原稿画像を読み取った後、この原稿画像の画像データを画像処理装置25内の画像メモリ26に一時的に記憶する。この後画像データを圧縮伸長処理部28で圧縮処理し、圧縮された圧縮データをハードディスク30に記憶する。そしてプリンタ24により複写画像を印刷形成する際にはハードディスク30に記憶した圧縮データを圧縮伸長処理部28で伸長処理して画像データを復元し、この復元した画像データを画像メモリ26に一時的に記憶し、更にプリンタ24に転送し複写画像を形成する。更にこのプリンタ24による印刷形成工程を繰り返し、必要部数を得る。
【0020】
次に画像処理装置25内での画像データの圧縮処理を、図3に示すフローチャートを用いて詳述する。スキャナ23より入力される画像データを画像メモリ26に一時的に記憶したら、ステップ100で、文字画像判断部31により画像データが文字画像なのかそれ以外の写真、イラスト等の画像なのかを判別する。文字画像でない場合は、ステップ103に進み圧縮伸長処理部28により画像データをそのまま圧縮処理する。
【0021】
画像データが文字画像である場合は、ステップ101に進み、文章方向判断部32により、画像データの配列が、文章方向と一致しているか、文章方向と垂直方向であるかを判別する。画像データの配列が文章方向と一致している場合は、ステップ103に進み圧縮伸長処理部28により画像データをそのまま圧縮処理する。画像データが文章方向と垂直方向である場合は、ステップ102に進み回転処理部27で、画像データを90°回転処理した後ステップ103に進み、圧縮伸長処理部28により回転した画像データを圧縮処理する。
【0022】
即ち、図4(a)に示すように、原稿36上の文章方向がスキャナ23による矢印s方向の読み取り走査方向と平行であり、画像データが文章方向に配列されている場合は、データの圧縮効率が高いことからそのまま圧縮処理する一方、図4(b)に示すように、原稿36上の文章方向が、スキャナ23による矢印s方向の読み取り走査方向と垂直になり、画像データの配列が文章方向に対し垂直になる場合は、画像データを90°回転して文章方向をスキャナ23による矢印s方向の読み取り走査方向と一致させて、データの圧縮効率を高めてから圧縮処理する。尚図5に示すようにすべての原稿について、圧縮処理時に画像データを回転したか否かの回転情報を、メモリ33の管理テーブル33aに記憶する。
【0023】
このようにステップ103で画像データを圧縮処理し、圧縮データをハードディスク30に記憶する。次いで複写画像印刷のため、ハードディスク30に記憶された圧縮データを圧縮伸長処理部28で伸長処理し、この後、メモリ33に記憶される図5に示す管理テーブルの回転情報に基づき、圧縮処理前に回転した画像データは、回転処理部27で圧縮処理時と逆方向に90°戻して、画像データを復元後、画像メモリ26に記憶し、プリンタ24に転送して複写画像を形成する。
【0024】
この様に構成すれば、スキャナ23から入力される画像データが文字データである場合には、文字データの文章方向と圧縮走査方向とを一致させて圧縮効率を高めるよう画像データを回転した後に圧縮するので、圧縮データサイズをより小さくする事が出来、画像データの処理時間の短縮及びハードディスク30内の使用容量の低減を図れ、画像処理装置及び画像形成装置の性能を向上出来る。
【0025】
次に本発明を図6乃至図9に示す第2の実施の形態を参照して説明する。本実施の形態は入力画像を複数の領域に分割し分割した画像領域毎に文字データをその文章方向と圧縮走査方向が一致するよう回転した後画像圧縮するものであり、他は第1の実施の形態と同様であることから同一部分については同一符号を付しその説明を省略する。図6に示すディジタル複写機35の画像処理装置36は、画像メモリ26、回転処理部27、圧縮伸長処理部28、ハードディスク30、文字画像判断部31、文章方向判断部32と、文字画像判断部31及び文章方向判断部32により、文字領域とそれ以外の領域を認識し、あるいは文章方向毎に領域を認識し、画像を夫々の領域に分割処理しまたは分割した領域を再構成処理する画像分割再構成処理部37から成っている。
【0026】
次に具体例を参照して、画像処理装置36内での画像データの圧縮処理について述べる。
(具体例1)
具体例1は図7に示すように、第1の文字データ38a、写真データ38b、第2の文字データ38cからなる画像データ38が表示される原稿40を、ソート機能を用いて複写操作する際に、原稿40の画像領域を定型分割するものである。画像処理装置36の画像分割再構成処理部37によりL−L´線より上の第1の文字データ38a、写真データ38bからなる分割領域40aと、 L−L´線より下の第2の文字データ38cからなる分割領域40bの上下1/2の定型領域に分割する。そして文章方向判断部32で、上の分割領域40aの第1の文字データ38aの文章方向が矢印t方向の圧縮走査方向に対して垂直方向である一方、下の分割領域40bの第2の文字データ38cの文章方向が矢印t方向の圧縮走査方向と一致していることを判断する。
【0027】
従って、下の分割領域40bの分割画像データは圧縮伸長処理部28によりそのまま圧縮処理する一方、上の分割領域40aの分割画像データは圧縮効率を向上するために回転処理部27で90°回転処理した後圧縮伸長処理部28により圧縮処理して形成された分割領域毎に夫々形成された分割圧縮データをハードディスク30に記憶する。尚メモリ33の管理テーブルには、原稿40について上分割領域40a及び下分割領域40bの夫々についての回転情報を記憶する。
【0028】
次いで複写画像印刷のため、ハードディスク30に記憶された分割圧縮データを夫々圧縮伸長処理部28で伸長処理し、この後メモリ33に記憶される管理テーブルの回転情報に基づき、圧縮処理前に回転した上の分割領域40aの分割画像データを90°戻し更に画像分割再構成処理部37にて上下分割領域40a、40bを再構成して画像データを復元し、画像メモリ26に記憶し、プリンタ24に転送して複写画像を形成する。
【0029】
これにより、上の分割領域40aの分割画像データの第1の文字データ38aの文章方向が圧縮走査方向と一致され、分割画像データの圧縮効率が向上される事から、分割圧縮データサイズをより小さく出来、ひいては原稿40の画像データ38全体の圧縮データサイズをより小さく出来る。
【0030】
(具体例2)
具体例2は図8に示すように、第3の文字データ42a、第1のイラストデータ42b、第2のイラストデータ42c、第4の文字データ42dからなる画像データ42が表示される原稿43を、ソート機能を用いて複写操作する際に、原稿の画像領域を画像データ42の内容に応じて任意に分割するものである。画像処理装置36の文字画像判断部31により原稿43の画像が、A点を起点とするA分割領域43a に第3の文字データ42a を有し、B点を起点とするB分割領域43b に第1のイラストデータ42b を有し、C点を起点とするC分割領域43cに第2のイラストデータ42cを有し、 D点を起点とするD分割領域43dに第4の文字データ42d を有することを判断し、画像分割再構成処理部37により夫々 A点、B点、C点、D点を起点とする分割領域43a〜43dに分割する。
【0031】
又文章方向判断部32で、A分割領域43aの第3の文字データ42aの文章方向が矢印u方向の圧縮走査方向に対して垂直方向である一方、 D分割領域43dの第4の文字データ42dの文章方向が矢印u方向の圧縮走査方向と一致していることを判断する。
【0032】
従って、 B、C、D分割領域43b〜43dの分割画像データは圧縮伸長処理部28によりそのまま圧縮処理する一方、 A分割領域43aの第3の文字データ42aは圧縮効率を向上するために回転処理部27で90°回転処理した後圧縮伸長処理部28により圧縮処理して、各分割領域43a〜43d毎に夫々形成された分割圧縮データをハードディスク30に記憶する。
【0033】
尚メモリ33の管理テーブルには、図9に示すように各分割領域43a〜43dのA点〜D点の各起点の位置情報及び各分割領域43a〜43dの幅及び高さを記憶し、又圧縮処理前に各分割領域43a〜43dの回転情報を記憶する。
【0034】
次いで複写画像印刷のため、ハードディスク30に記憶された分割圧縮データを夫々圧縮伸長処理部28で伸長処理し、この後メモリ33に記憶される管理テーブルの回転情報に基づき、圧縮処理前に回転した領域の分割画像データを90°戻し更に画像分割再構成処理部37にて管理テーブルの位置情報、サイズ情報に基づき各分割領域43a〜43dを再構成して画像データを復元し、画像メモリ26に記憶し、プリンタ24に転送して複写画像を形成する。
【0035】
これにより、原稿43の画像領域を画像データの内容に応じてA分割領域43a〜D分割領域43dの領域に分割し、A分割領域43aの分割データを回転して第3の文字データ42aの文章方向を圧縮走査方向と一致する事により、A分割領域43aにおける分割画像データの圧縮効率を向上出来、A分割領域43aの第3の文字データ42aの圧縮データサイズをより小さく出来、ひいては原稿43の画像データ42全体の圧縮データサイズをより小さく出来る。
【0036】
本実施の形態によれば、原稿を複数領域に分割し、文字データの文章方向を圧縮走査方向と一致させるために画像データの回転を必要とする領域にあっては、分割画像データを回転した後圧縮処理することにより、原稿の画像内容に対応して、各領域毎に圧縮効率の向上を図れ、圧縮データサイズをより効果的に小さく出来、ひいては画像データの処理時間の短縮及びハードディスク30内の使用容量の低減を効率的に得られ、画像処理装置及び画像形成装置の性能をより向上出来る。
【0037】
次に本発明を図10乃至図14に示す第3の実施の形態を参照して説明する。本実施の形態は、複数の走査方向での画像データのライン毎の画素の分布状況を比較して、圧縮効率の高いライン方向を検出し、このライン方向を画像データの圧縮走査方向に一致するよう、画像データを回転した後画像圧縮するものであり、他は第1の実施の形態と同様であることから同一部分については同一符号を付しその説明を省略する。図10に示すディジタル複写機45の画像処理装置46は、画像メモリ26、回転処理部27、圧縮伸長処理部28、ハードディスク30、度数カウンタ47及び平坦方向判断部48から成っている。度数カウンタ47は、入力された画像データのライン毎に画素数の合計(度数)を求める手段であり、平坦方向判断部48は、度数カウンタ47で求められた各ラインの度数を所定の上閾値及び所定の下閾値と比較し、上閾値を上回ったライン数と、下閾値を下回ったライン数の合計を求め、更に合計値の最も大きい平坦方向を選択する手段である。
【0038】
次に具体例を参照して、画像処理装置36内での画像データの圧縮処理について述べる。
(具体例3)
図11に示すように、画素部50a及び非画素部50bが配列される画像データを有する原稿50を、ソート機能を用いて複写操作する場合、先ず図12(a)に示すように画像処理装置46の度数カウンタ47にて、圧縮走査方向に沿った矢印v方向における画像データの各ライン毎の画素部50aの合計である度数を求め、次いで平坦方向判断部48で、度数が、上閾値(3)以上のライン数及び下閾値(1)以下のライン数の合計1を求める。他方、図12(b)に示すように画像処理装置46の度数カウンタ47にて、圧縮走査方向と垂直の矢印w方向における画像データの各ライン毎の画素部50aの合計である度数を求め、次いで平坦方向判断部48で、度数が、上閾値(3)以上のライン数及び下閾値(1)以下のライン数の合計4を求め、矢印v方向のライン数1と矢印w方向のライン数4とを比較して、矢印w方向が大きいことから、矢印w方向が平坦方向であり、圧縮効率が高いライン方向であると判断する。
【0039】
従って画像データの圧縮効率を向上するために画像データを90°回転して、平坦ライン方向を、圧縮走査方向と一致させて、データの圧縮効率を高めてから圧縮伸長処理部28により圧縮処理し、圧縮データをハードディスク30に記憶する。尚メモリ33の管理テーブルに各原稿毎の回転情報を記憶する。
【0040】
次いで複写画像印刷のため、ハードディスク30に記憶された圧縮データを圧縮伸長処理部28で伸長処理し、この後メモリ33に記憶される管理テーブルの回転情報に基づき、圧縮処理前に回転した画像データは、回転処理部27で圧縮処理時と逆方向に90°戻して、画像データを復元後、画像メモリ26に記憶し、プリンタ24に転送して複写画像を形成する。
【0041】
これにより、文字データに限らず、画像データの圧縮効率の高い平坦ライン方向を検出後、平坦ライン方向と圧縮走査方向とを一致させて圧縮効率を高めるよう画像データを回転した後に圧縮するので、圧縮データサイズをより小さくする事が出来、画像データの処理時間の短縮及びハードディスク30内の使用容量の低減を図れ、画像処理装置及び画像形成装置の性能を向上出来る。
(具体例4)
図13に示すように、画素部51a及び非画素部51bが配列される画像データを有する原稿51を、ソート機能を用いて複写操作する場合、先ず図14(a)に示すように画像処理装置46の度数カウンタ47にて、圧縮走査方向に沿った矢印v方向における画像データの1ラインおきの画素部51aの合計である度数を求め、次いで平坦方向判断部48で、度数が、上閾値(5)以上のライン数及び下閾値(1)以下のライン数の合計0を求める。他方、図14(b)に示すように画像処理装置46の度数カウンタ47にて、圧縮走査方向と垂直の矢印w方向における画像データの1ラインおきのの画素部51aの合計である度数を求め、次いで平坦方向判断部48で、度数が、上閾値(5)以上のライン数及び下閾値(1)以下のライン数の合計2を求め、矢印v方向のライン数0と矢印w方向のライン数2とを比較して、矢印w方向が大きいことから、矢印w方向が平坦方向であり、圧縮効率が高いライン方向であると判断する。
【0042】
従って画像データの圧縮効率を向上するために画像データを90°回転して、平坦ライン方向を、圧縮走査方向と一致させて、データの圧縮効率を高めてから圧縮伸長処理部28により圧縮処理し、圧縮データをハードディスク30に記憶する。尚メモリ33の管理テーブルに各原稿毎の回転情報を記憶する。
【0043】
次いで複写画像印刷のため、ハードディスク30に記憶された圧縮データを圧縮伸長処理部28で伸長処理し、この後メモリ33に記憶される管理テーブルの回転情報に基づき、圧縮処理前に回転した画像データは、回転処理部27で圧縮処理時と逆方向に90°戻して、画像データを復元後、画像メモリ26に記憶し、プリンタ24に転送して複写画像を形成する。
【0044】
これにより、文字データに限らず、画像データの圧縮効率の高い平坦ライン方向を検出後、平坦ライン方向と圧縮走査方向とを一致させて圧縮効率を高めるよう画像データを回転した後に圧縮するので、圧縮データサイズをより小さくする事が出来、画像データの処理時間の短縮及びハードディスク30内の使用容量の低減を図れ、画像処理装置及び画像形成装置の性能を向上出来る。しかも、平坦ライン方向を検出する際1ラインおきに度数を求めているので、全ラインについて求める場合に比しその処理時間を1/2に短縮可能となる。
【0045】
尚具体例3及び具体例4のいずれの場合も、平坦ラインを検知した結果、矢印v方向、矢印w方向のいずれも同じライン数であ理、いずれの方向でも圧縮効率が同じ場合は、そのまま画像圧縮する。
【0046】
次に本発明を図15乃至図16に示す第4の実施の形態を参照して説明する。本実施の形態は入力画像を複数の領域に分割し分割した画像領域毎に平坦ライン方向と圧縮走査方向が一致するよう回転した後画像圧縮するものであり、他は第3の実施の形態と同様であることから同一部分については同一符号を付しその説明を省略する。図15に示すディジタル複写機52の画像処理装置53は、画像メモリ26、回転処理部27、圧縮伸長処理部28、ハードディスク30、度数カウンタ47、平坦方向判断部48及び、画像を規定領域に分割処理しまたは分割した領域を再構成処理する画像分割再構成処理部54から成っている。
【0047】
そして例えば図16に示すように、画素部57a及び非画素部57bが配列される画像データを有する原稿58を、ソート機能を用いて複写操作する際に、原稿58の画像領域を定型分割するものである。即ち画像処理装置53の画像分割再構成処理部54によりM−M´線より上の分割領域58aと、 M−M´線より下の分割領域58bの上下1/2の定型領域に分割する。
【0048】
そして各分割領域58a、58b毎に、第3の実施の形態と同様にして平坦ライン方向を選択する。即ち、上の分割領域58aにあっては、矢印v方向のライン数1と矢印w方向のライン数4とを比較して、矢印w方向が大きいことから、矢印w方向が平坦方向であり、圧縮効率が高いライン方向であると判断する。一方下の分割領域58bにあっては、矢印v方向のライン数4と矢印w方向のライン数0とを比較して、矢印v方向が大きいことから、矢印v方向が平坦方向であり、圧縮効率が高いライン方向であると判断する。
【0049】
従って画像データの圧縮効率を向上するために上の分割領域58aの画像データを90°回転して、平坦ライン方向を、圧縮走査方向と一致させて、データの圧縮効率を高めてから圧縮伸長処理部28により圧縮処理する一方、下の分割領域58bの画像データは、そのままで平坦ライン方向が圧縮走査方向と一致する事から、回転することなく圧縮伸長処理部28により圧縮処理し、両分割領域58a、58bの圧縮データをハードディスク30に記憶する。尚メモリ33の管理テーブルに各分割領域毎の回転情報を記憶する。
【0050】
次いで複写画像印刷のため、ハードディスク30に記憶された圧縮データを圧縮伸長処理部28で伸長処理し、この後メモリ33に記憶される管理テーブルの回転情報に基づき、圧縮処理前に回転した上分割領域58aの画像データを90°戻し、更に画像分割再構成処理部37にて上下分割領域58a、58bを再構成して画像データを復元し、画像メモリ26に記憶し、プリンタ24に転送して複写画像を形成する。
【0051】
この様に構成すれば、文字データに限らず、画像データの圧縮効率の高い平坦ライン方向を検出後、平坦ライン方向と圧縮走査方向とを一致させて圧縮効率を高めるよう画像データを回転した後に圧縮するので、圧縮データサイズをより小さくする事が出来、画像データの処理時間の短縮及びハードディスク30内の使用容量の低減を図れ、画像処理装置及び画像形成装置の性能を向上出来る。しかも画像領域を分割して、分割領域毎に平坦ライン方向の検出及び画像データの回転を行えることから、より画像内容に沿った平坦ライン方向を検出出来、画像データの圧縮効率の一層の向上を得られる。
【0052】
次に本発明を図17乃至図19に示す第5の実施の形態を参照して説明する。本実施の形態は、複数の走査方向での画像データのライン毎に隣接画素が異なる割合(画素のバラツキ)を比較して、圧縮効率の高いライン方向を検出し、このライン方向を画像データの圧縮走査方向に一致するよう、画像データを回転した後画像圧縮するものであり、他は第1の実施の形態と同様であることから同一部分については同一符号を付しその説明を省略する。図17に示すディジタル複写機60の画像処理装置61は、画像メモリ26、回転処理部27、圧縮伸長処理部28、ハードディスク30、差分カウンタ62及び平坦方向判断部63から成っている。差分カウンタ62は、入力された画像データのライン毎に隣接画素が異なる数の合計(差分)を求める手段であり、平坦方向判断部63は、差分カウンタ62で求められた各ラインの差分を所定の下閾値と比較し、下閾値を下回ったライン数の合計を求め、更に合計値の最も大きい平坦ライン方向を選択する手段である。
【0053】
そして例えば図18に示すように、黒画素部64、グレー画素部66、非画素部67が配列される画像データを有する原稿68を、ソート機能を用いて複写操作する場合、先ず図19(a)に示すように画像処理装置61の差分カウンタ62にて、圧縮走査方向に沿った矢印x方向における画像データの各ライン毎に隣接画素が異なる数の合計である差分を求め(例えば隣接画素が黒とグレーあるいは黒と白のように画素が異なる場合を1とし、白と白あるいは黒と黒のように同じ画素が連続する場合は0として、各ライン毎にその数値の合計を求める。)、次いで平坦方向判断部63で、差分が、下閾値(1)以下のライン数の合計1を求める。他方、図19(b)に示すように画像処理装置61の差分カウンタ62にて、圧縮走査方向と垂直の矢印y方向における画像データの各ライン毎に隣接画素が異なる数の合計である差分を求め、次いで平坦方向判断部63で、差分が、下閾値(1)以下のライン数の合計2を求め、矢印x方向のライン数1と矢印y方向のライン数2とを比較して、矢印y方向が大きいことから、矢印y方向が平坦方向であり、圧縮効率が高いライン方向であると判断する。
【0054】
従って画像データの圧縮効率を向上するために画像データを90°回転して、平坦ライン方向を、圧縮走査方向と一致させて、データの圧縮効率を高めてから圧縮伸長処理部28により圧縮処理し、圧縮データをハードディスク30に記憶する。尚メモリ33の管理テーブルに各原稿毎の回転情報を記憶する。
【0055】
次いで複写画像印刷のため、ハードディスク30に記憶された圧縮データを圧縮伸長処理部28で伸長処理し、この後メモリ33に記憶される管理テーブルの回転情報に基づき、圧縮処理前に回転した画像データは、回転処理部27で圧縮処理時と逆方向に90°戻して、画像データを復元後、画像メモリ26に記憶し、プリンタ24に転送して複写画像を形成する。
【0056】
この様に構成すれば、文字データに限らず、画像データの圧縮効率の高い平坦ライン方向を検出後、平坦ライン方向と圧縮走査方向とを一致させて圧縮効率を高めるよう画像データを回転した後に圧縮するので、圧縮データサイズをより小さくする事が出来、画像データの処理時間の短縮及びハードディスク30内の使用容量の低減を図れ、画像処理装置及び画像形成装置の性能を向上出来る。しかも平坦ライン方向を検出する際、隣接する画素が異なる数を合計するので、3種類以上の異なる画素からなる画像(多値画像)であっても平坦ライン方向の検出が可能となる。
【0057】
次に本発明を図20及び図21に示す第6の実施の形態を参照して説明する。本実施の形態は入力画像を複数の領域に分割し分割した画像領域毎に平坦ライン方向と圧縮走査方向が一致するよう回転した後画像圧縮するものであり、他は第5の実施の形態と同様であることから同一部分については同一符号を付しその説明を省略する。図20に示すディジタル複写機70の画像処理装置71は、画像メモリ26、回転処理部27、圧縮伸長処理部28、ハードディスク30、差分カウンタ62、平坦方向判断部63及び、画像を規定領域に分割処理しまたは分割した領域を再構成処理する画像分割再構成処理部72から成っている。
【0058】
そして例えば図21に示すように、黒画素部73、グレー画素部74、非画素部76が配列される画像データを有する原稿77を、ソート機能を用いて複写操作する際に、原稿77の画像領域を定型分割するものである。即ち画像処理装置71の画像分割再構成処理部72によりN−N´線より上の分割領域77aと、N−N´線より下の分割領域77bの上下1/2の定型領域に分割する。
【0059】
そして各分割領域77a、77b毎に、第5の実施の形態と同様にして平坦ライン方向を選択する。即ち、上の分割領域77aにあっては、矢印x方向のライン数1と矢印y方向のライン数2とを比較して、矢印y方向が大きいことから、矢印y方向が平坦方向であり、圧縮効率が高いライン方向であると判断する。一方下の分割領域77bにあっては、矢印x方向のライン数2と矢印y方向のライン数1とを比較して、矢印x方向が大きいことから、矢印x方向が平坦方向であり、圧縮効率が高いライン方向であると判断する。
【0060】
従って画像データの圧縮効率を向上するために上の分割領域77aの画像データを90°回転して、平坦ライン方向を、圧縮走査方向と一致させて、データの圧縮効率を高めてから圧縮伸長処理部28により圧縮処理する一方、下の分割領域77bの画像データは、そのままで平坦ライン方向が圧縮走査方向と一致する事から、回転することなく圧縮伸長処理部28により圧縮処理し、両分割領域77a、77bの圧縮データをハードディスク30に記憶する。尚メモリ33の管理テーブルに各分割領域毎の回転情報を記憶する。
【0061】
次いで複写画像印刷のため、ハードディスク30に記憶された圧縮データを圧縮伸長処理部28で伸長処理し、この後メモリ33に記憶される管理テーブルの回転情報に基づき、圧縮処理前に回転した上分割領域77aの画像データを90°戻し、更に画像分割再構成処理部72にて上下分割領域77a、77bを再構成して画像データを復元し、画像メモリ26に記憶し、プリンタ24に転送して複写画像を形成する。
【0062】
この様に構成すれば、文字データに限らず、画像データの圧縮効率の高い平坦ライン方向を検出後、平坦ライン方向と圧縮走査方向とを一致させて圧縮効率を高めるよう画像データを回転した後に圧縮するので、圧縮データサイズをより小さくする事が出来、画像データの処理時間の短縮及びハードディスク30内の使用容量の低減を図れ、画像処理装置及び画像形成装置の性能を向上出来る。しかも画像領域を分割して、分割領域毎に平坦ライン方向の検出及び画像データの回転を行えることから、より画像内容に沿った平坦ライン方向を検出出来、画像データの圧縮効率の一層の向上を得られる。更に多値画像からなる画像データであっても、より効率の高い画像圧縮が可能となる。
【0063】
尚本発明は上記実施の形態に限られるものでは無く、その趣旨を変えない範囲での変更は可能であって、例えば画像データを分割する際に、定型分割である場合は、上下、左右、あるいは多数に分割可能であるし、画像内容を読み取って分割する場合は、全く任意である。又画像各画素の色等限定されないし、多値画像の画素の数等も任意である。更に、平坦ライン方向を検出する場合の、ラインの走査方向も自由であるし、2方向からのみでなく、多数の方向から走査する等任意である。
【0064】
【発明の効果】
以上説明したように本発明によれば、画像データの内容に応じて、圧縮効率の高い方向に回転した後圧縮処理を行う事から、圧縮データのサイズを小さく出来、記憶媒体に対して圧縮データを入出に要するデータ処理時間を短縮出来、更に圧縮データによる記憶媒体の使用容量を低減出来、画像処理装置、ひいては画像形成装置の性能向上を得られる。
【図面の簡単な説明】
【図1】本発明の原理のディジタル複写機のシステム構成を示す概略構成図である。
【図2】本発明の第1の実施の形態のディジタル複写機のシステム構成を示す概略構成図である。
【図3】本発明の第1の実施の形態の画像データの圧縮処理過程を示すフローチャートである。
【図4】本発明の第1の実施の形態における画像データの取り扱いを示し、(a)はその文章方向と圧縮方向が一致する場合、(b)はその文章方向と圧縮方向が垂直である場合を示す概略説明図である。
【図5】本発明の第1の実施の形態のメモリに記憶される管理テーブルの内容の一部を示す概略説明図である。
【図6】本発明の第2の実施の形態のディジタル複写機のシステム構成を示す概略構成図である。
【図7】本発明の第2の実施の形態の具体例1の原稿を示す概略説明図である。
【図8】本発明の第2の実施の形態の具体例2の原稿を示す概略説明図である。
【図9】本発明の第2の実施の形態のメモリに記憶される管理テーブルの内容の一部を示す概略説明図である。
【図10】本発明の第3の実施の形態のディジタル複写機のシステム構成を示す概略構成図である。
【図11】本発明の第3の実施の形態の具体例3の原稿を示す概略説明図である。
【図12】本発明の第3の実施の形態の具体例3の平坦ライン方向の検出操作を示し、(a)はその圧縮走査方向のライン毎の度数を求める場合、(b)はその圧縮走査方向と垂直方向のライン毎の度数を求める場合を示す概略説明図である。
【図13】本発明の第3の実施の形態の具体例4の原稿を示す概略説明図である。
【図14】本発明の第3の実施の形態の具体例4の平坦ライン方向の検出操作を示し、(a)はその圧縮走査方向の1ラインおきの度数を求める場合、(b)はその圧縮走査方向と垂直方向の1ラインおきの度数を求める場合を示す概略説明図である。
【図15】本発明の第4の実施の形態のディジタル複写機のシステム構成を示す概略構成図である。
【図16】本発明の第4の実施の形態の原稿を示す概略説明図である。
【図17】本発明の第5の実施の形態のディジタル複写機のシステム構成を示す概略構成図である。
【図18】本発明の第5の実施の形態の原稿を示す概略説明図である。
【図19】本発明の第5の実施の形態の平坦ライン方向の検出操作を示し、(a)はその圧縮走査方向のライン毎の差分を求める場合、(b)はその圧縮走査方向と垂直方向のライン毎の差分を求める場合を示す概略説明図である。
【図20】本発明の第6の実施の形態のディジタル複写機のシステム構成を示す概略構成図である。
【図21】本発明の第6の実施の形態の原稿を示す概略説明図である。
【符号の説明】
20…ディジタル複写機
21…共通バス
22…CPU
23…スキャナ
24…プリンタ
25…画像処理装置
26…画像メモリ
27…回転処理部
28…圧縮伸長処理部
30…ハードディスク
31…文字画像判断部
32…文章方向判断部
33…メモリ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus and an image forming apparatus for compressing input image data in a digital copying machine, a personal computer, or the like.
[0002]
[Prior art]
In an image processing apparatus that is used in a digital copying machine or the like and compresses input image data read by an image reading apparatus and stores it in a storage medium such as a hard disk, the compression scanning direction of the input image data is the original by the image reading apparatus. It depends on the scanning direction and is fixed to be the same as the original scanning direction.
[0003]
[Problems to be solved by the invention]
Conventionally, the compression direction of input image data in the image processing apparatus is fixed regardless of the contents of the image data. For this reason, depending on the input image data, the compression efficiency is low and the size of the compressed data is increased, the input / output performance of the compressed data to the storage medium is reduced, processing time is required, and the required capacity of the storage medium increases. Had.
[0004]
Therefore, the present invention eliminates the above-mentioned problems, and by reducing the compressed data by increasing the compression efficiency regardless of the characteristics of the input image data, the data processing time can be shortened, and the use capacity of the storage medium The purpose is to reduce this.
[0005]
[Means for Solving the Problems]
As means for solving the above problems, the present invention provides image input means for inputting image data obtained from a document image, and Said The original image from the image data input by the image input means A scan data extracting means for extracting two scan data obtained by scanning two orthogonal directions, and a data frequency in a line along the scan direction of the two scan data obtained by the scan data extracting means And the total number of the upper lines where the extracted data frequency is equal to or higher than a predetermined upper threshold and the lower line number where the data frequency is equal to or lower than a predetermined lower threshold. A flat line direction discriminating means for judging that a large line direction is a flat line direction; Said If the flat line direction does not match the compression scanning direction, the image data is rotated by 90 ° so that the flat line direction matches the compression scanning direction. Rotation means; The image data in which the flat line direction and the compression scanning direction match is not compressed, and the image data in which the flat line direction and the compression scanning direction match is compressed. Compression means;
Compression means; Said Data storage means for storing compressed data formed by the compression means; Said Decompressing the compressed data stored in the data storage means; When the compressed data is rotated by the rotating means, the compressed data is And a restoring means for restoring the image data by performing a rotation process.
[0006]
Further, the present invention provides an image input means for inputting image data obtained from a document image, as means for solving the above problems, Said The original image from the image data input by the image input means A scan data extracting means for extracting two scan data obtained by scanning two orthogonal directions, and a data frequency in a line along the scan direction of the two scan data obtained by the scan data extracting means And the total number of the upper lines where the extracted data frequency is equal to or higher than a predetermined upper threshold and the lower line number where the data frequency is equal to or lower than a predetermined lower threshold. Flat line direction discriminating means for determining that the large line direction is the flat line direction; The above If the flat line direction does not match the compression scanning direction, the image data is rotated by 90 ° so that the flat line direction matches the compression scanning direction. Rotation means; The image data in which the flat line direction and the compression scanning direction match is not compressed, and the image data in which the flat line direction and the compression scanning direction match is compressed. Compression means; Said Data storage means for storing compressed data formed by the compression means; Said Decompressing the compressed data stored in the data storage means; When the compressed data is rotated by the rotating means, the compressed data is A restoring means for restoring the image data by performing rotation processing; Said And an image output means for forming a print image based on the image data restored by the restoration means.
[0007]
With the above configuration, the present invention reduces the size of the compressed data by rotating the image data in the direction in which efficient compression can be obtained in accordance with the contents of the input image data, thereby reducing the data processing time. And the use capacity of the storage medium is reduced to improve the function.
[0008]
Further, the present invention provides an image input means for inputting image data obtained from a document image, as means for solving the above problems, Said The original image from the image data input by the image input means Scanning data extracting means for extracting two scanning data obtained by scanning two orthogonal directions, and a difference in a line along the scanning direction for each of the two scanning data obtained by the scanning data extracting means Is a flat line direction discriminating means for judging that a direction in which the total number of lines equal to or less than a predetermined lower threshold is large is a flat line direction; Said If the flat line direction does not match the compression scanning direction, the image data is rotated by 90 ° so that the flat line direction matches the compression scanning direction. Rotation means; The image data in which the flat line direction and the compression scanning direction match is not compressed, and the image data in which the flat line direction and the compression scanning direction match is compressed. Compression means; Said Formed by compression means Pressure Data storage means for storing compressed data; Said Before being stored in the data storage means Pressure While decompressing the compressed data When the compressed data is rotated by the rotating means, the compressed data is Rotate the above image And a restoring means for restoring data.
[0009]
Further, the present invention provides an image input means for inputting image data obtained from a document image, as means for solving the above problems, Said The image data input by the image input means Scanning data extraction means for extracting two scanning data obtained by scanning the document image in two orthogonal directions, and for each of the two scanning data obtained by the scanning data extraction means, along the scanning direction. Flat line direction discriminating means for judging that the direction in which the total of the number of lines whose difference in the lines is equal to or less than a predetermined lower threshold is a flat line direction Said If the flat line direction does not match the compression scanning direction, the image data is rotated by 90 ° so that the flat line direction matches the compression scanning direction. Rotation means; The image data in which the flat line direction and the compression scanning direction match is not compressed, and the image data in which the flat line direction and the compression scanning direction match is compressed. Compression means; Said Formed by compression means Pressure Data storage means for storing compressed data; Said Before being stored in the data storage means Pressure While decompressing the compressed data When the compressed data is rotated by the rotating means, the compressed data is Rotate the above image A recovery means for recovering data; Said Before being restored by restoration means Drawing Image output means for forming a print image based on the image data is provided.
[0010]
With the above configuration, the present invention can be used according to the content of input image data Picture By compressing image data after rotating it in the direction to obtain efficient compression. Picture Image data No Is The low Reduce data processing time The short Shrinkage Shi , Storage media usage capacity Reduce the machine Performance improvement.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
First, the principle of the present invention will be described with reference to FIG. FIG. 1 shows a system configuration of the
[0012]
In such a
[0013]
In general, the image data storage operation in the image processing apparatus 7 is as follows: “Image data from the
[0014]
Here, in order to increase the number of processed images per unit time so as to increase the speed of the
[0015]
On the other hand, the image data has higher compression efficiency when the pixel information of the same element is continuous than when the adjacent pixel information is disjoint. For example, when the image data is character data, A higher data compression rate can be obtained by performing image compression along the text direction than when compressing in the text direction and the vertical direction.
[0016]
Therefore, in the present invention, based on the above principle, image data is compressed and scanned in the direction of high compression efficiency in which pixel information of the same element is continuous, thereby reducing the compressed data size.
[0017]
The present invention will be described below with reference to the first embodiment shown in FIGS. FIG. 2 shows a system configuration of a digital copying
[0018]
Next, the operation will be described. First, when a normal copy is made one by one corresponding to the original, the original image is first read by the
[0019]
On the other hand, multiple documents Duplication In the case of a copying operation using the sort function for copying, the image data of a plurality of documents is temporarily stored in the
[0020]
Next, image data compression processing in the
[0021]
If the image data is a character image, the process proceeds to step 101 where the sentence
[0022]
That is, as shown in FIG. 4A, when the text direction on the
[0023]
In this way, the image data is compressed in
[0024]
With this configuration, when the image data input from the
[0025]
Next, the present invention will be described with reference to a second embodiment shown in FIGS. In the present embodiment, the input image is divided into a plurality of areas, and the character data is rotated for each divided image area so that the text direction and the compression scanning direction coincide with each other, and the image compression is performed. The same parts are denoted by the same reference numerals and the description thereof is omitted. The
[0026]
Next, image data compression processing in the
(Specific example 1)
In the first specific example, as shown in FIG. 7, when a
[0027]
Accordingly, the divided image data in the lower divided
[0028]
Next, the divided compressed data stored in the
[0029]
Thereby, the text direction of the
[0030]
(Specific example 2)
In Example 2, as shown in FIG. 8, a
[0031]
In the text
[0032]
Therefore, the divided image data of the B, C, and D divided
[0033]
The management table of the
[0034]
Next, the divided compressed data stored in the
[0035]
As a result, the image area of the
[0036]
According to the present embodiment, the original is divided into a plurality of areas, and the divided image data is rotated in an area that requires rotation of the image data in order to make the text direction of the character data coincide with the compression scanning direction. By performing post-compression processing, it is possible to improve the compression efficiency for each area in accordance with the image content of the document, and to reduce the compressed data size more effectively. The use capacity can be efficiently reduced, and the performance of the image processing apparatus and the image forming apparatus can be further improved.
[0037]
Next, the present invention will be described with reference to a third embodiment shown in FIGS. In the present embodiment, the pixel distribution status of each line of image data in a plurality of scanning directions is compared, a line direction with high compression efficiency is detected, and this line direction matches the compression scanning direction of the image data. Thus, the image data is rotated and then compressed, and the rest is the same as in the first embodiment. Therefore, the same parts are denoted by the same reference numerals and the description thereof is omitted. An
[0038]
Next, image data compression processing in the
(Specific example 3)
As shown in FIG. 11, when a
[0039]
Accordingly, in order to improve the compression efficiency of the image data, the image data is rotated by 90 °, the flat line direction is made coincident with the compression scanning direction, and the compression efficiency is increased by the compression /
[0040]
Next, for copying image printing, the compressed data stored in the
[0041]
As a result, not only character data but also a flat line direction with high compression efficiency of image data is detected, and then compressed after rotating the image data to increase the compression efficiency by matching the flat line direction with the compression scanning direction. The compressed data size can be further reduced, the processing time of the image data can be shortened and the used capacity in the
(Specific example 4)
As shown in FIG. 13, when a
[0042]
Accordingly, in order to improve the compression efficiency of the image data, the image data is rotated by 90 °, the flat line direction is made coincident with the compression scanning direction, and the compression efficiency is increased by the compression /
[0043]
Next, for copying image printing, the compressed data stored in the
[0044]
As a result, not only character data but also a flat line direction with high compression efficiency of image data is detected, and then compressed after rotating the image data to increase the compression efficiency by matching the flat line direction with the compression scanning direction. The compressed data size can be further reduced, the processing time of the image data can be shortened and the used capacity in the
[0045]
In both cases of specific example 3 and specific example 4, as a result of detecting a flat line, both the arrow v direction and the arrow w direction have the same number of lines. Compress the image.
[0046]
Next, the present invention will be described with reference to a fourth embodiment shown in FIGS. In the present embodiment, the input image is divided into a plurality of regions, and the image is compressed after being rotated so that the flat line direction and the compression scanning direction coincide with each other for the divided image regions. The others are the same as those in the third embodiment. Since they are the same, the same parts are denoted by the same reference numerals and description thereof is omitted. The
[0047]
For example, as shown in FIG. 16, when an original 58 having image data in which
[0048]
Then, a flat line direction is selected for each of the divided
[0049]
Therefore, in order to improve the compression efficiency of the image data, the image data of the upper divided
[0050]
Next, the compressed data stored in the
[0051]
With this configuration, after detecting a flat line direction with high compression efficiency of image data, not only for character data, but after rotating the image data so as to increase the compression efficiency by matching the flat line direction with the compression scanning direction. Since compression is performed, the size of the compressed data can be further reduced, the processing time of the image data can be shortened and the used capacity in the
[0052]
Next, the present invention will be described with reference to a fifth embodiment shown in FIGS. In the present embodiment, the ratio of adjacent pixels differing for each line of image data in a plurality of scanning directions (pixel variation) is compared, a line direction with high compression efficiency is detected, and the line direction is detected based on the image data. The image data is rotated and then compressed so as to coincide with the compression scanning direction, and the rest is the same as in the first embodiment. Therefore, the same parts are denoted by the same reference numerals and description thereof is omitted. An
[0053]
For example, as shown in FIG. 18, when a
[0054]
Accordingly, in order to improve the compression efficiency of the image data, the image data is rotated by 90 °, the flat line direction is made coincident with the compression scanning direction, and the compression efficiency is increased by the compression /
[0055]
Next, for copying image printing, the compressed data stored in the
[0056]
With this configuration, after detecting a flat line direction with high compression efficiency of image data, not only for character data, but after rotating the image data so as to increase the compression efficiency by matching the flat line direction with the compression scanning direction. Since compression is performed, the size of the compressed data can be further reduced, the processing time of the image data can be shortened and the used capacity in the
[0057]
Next, the present invention will be described with reference to a sixth embodiment shown in FIGS. In the present embodiment, the input image is divided into a plurality of regions, and the image is compressed after being rotated so that the flat line direction and the compression scanning direction coincide with each other for the divided image regions. The others are the same as in the fifth embodiment. Since they are the same, the same parts are denoted by the same reference numerals and description thereof is omitted. An
[0058]
Then, for example, as shown in FIG. 21, when a
[0059]
Then, a flat line direction is selected for each of the divided
[0060]
Accordingly, in order to improve the compression efficiency of the image data, the image data in the upper divided
[0061]
Next, the compressed data stored in the
[0062]
With this configuration, after detecting a flat line direction with high compression efficiency of image data, not only for character data, but after rotating the image data so as to increase the compression efficiency by matching the flat line direction with the compression scanning direction. Since compression is performed, the size of the compressed data can be further reduced, the processing time of the image data can be shortened and the used capacity in the
[0063]
It should be noted that the present invention is not limited to the above-described embodiment, and can be changed within a range that does not change the gist of the present invention.For example, when dividing image data, in the case of regular division, up and down, left and right, Alternatively, it can be divided into a large number, and when the image content is read and divided, it is completely arbitrary. Further, the color of each pixel of the image is not limited, and the number of pixels of the multi-valued image is arbitrary. Furthermore, when detecting the flat line direction, the scanning direction of the line is also free, and it is arbitrary such as scanning from many directions as well as from two directions.
[0064]
【The invention's effect】
As described above, according to the present invention, since the compression process is performed after rotating in the direction of high compression efficiency according to the content of the image data, the size of the compressed data can be reduced, and the compressed data can be stored in the storage medium. The data processing time required for loading and unloading can be shortened, and further, the capacity of the storage medium used by the compressed data can be reduced, and the performance of the image processing apparatus, and hence the image forming apparatus can be improved.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram showing a system configuration of a digital copying machine according to the principle of the present invention.
FIG. 2 is a schematic configuration diagram showing a system configuration of the digital copying machine according to the first embodiment of this invention.
FIG. 3 is a flowchart showing a process of compressing image data according to the first embodiment of the present invention.
4A and 4B show how image data is handled in the first embodiment of the present invention. FIG. 4A shows a case where the text direction and the compression direction coincide with each other, and FIG. 4B shows that the text direction and the compression direction are vertical. It is a schematic explanatory drawing which shows a case.
FIG. 5 is a schematic explanatory diagram illustrating a part of the contents of the management table stored in the memory according to the first embodiment of this invention;
FIG. 6 is a schematic configuration diagram showing a system configuration of a digital copying machine according to a second embodiment of the present invention.
FIG. 7 is a schematic explanatory diagram showing a document of specific example 1 of the second exemplary embodiment of the present invention.
FIG. 8 is a schematic explanatory diagram showing a document of specific example 2 of the second embodiment of the present invention.
FIG. 9 is a schematic explanatory diagram illustrating a part of the contents of a management table stored in a memory according to the second embodiment of this invention;
FIG. 10 is a schematic configuration diagram showing a system configuration of a digital copying machine according to a third embodiment of the present invention.
FIG. 11 is a schematic explanatory diagram illustrating a document of specific example 3 of the third exemplary embodiment of the present invention.
FIGS. 12A and 12B show a detection operation in a flat line direction according to specific example 3 of the third embodiment of the present invention, where FIG. 12A shows the frequency for each line in the compression scanning direction, and FIG. 12B shows the compression operation; It is a schematic explanatory drawing which shows the case where the frequency | count for every line of a scanning direction and a perpendicular direction is calculated | required.
FIG. 13 is a schematic explanatory diagram showing a document of a specific example 4 according to the third embodiment of the present invention.
14A and 14B show a detection operation in a flat line direction according to specific example 4 of the third embodiment of the present invention, where FIG. 14A shows the frequency every other line in the compression scanning direction, and FIG. It is a schematic explanatory drawing which shows the case where the frequency for every other line of a compression scanning direction and a perpendicular direction is calculated | required.
FIG. 15 is a schematic configuration diagram showing a system configuration of a digital copying machine according to a fourth embodiment of the present invention.
FIG. 16 is a schematic explanatory diagram illustrating a document according to a fourth embodiment of the present invention.
FIG. 17 is a schematic configuration diagram showing a system configuration of a digital copying machine according to a fifth embodiment of the present invention.
FIG. 18 is a schematic explanatory diagram illustrating a document according to a fifth embodiment of the present invention.
FIG. 19 shows a detection operation in a flat line direction according to the fifth embodiment of the present invention, where (a) shows a difference for each line in the compression scan direction, and (b) shows a direction perpendicular to the compression scan direction. It is a schematic explanatory drawing which shows the case where the difference for every line of a direction is calculated | required.
FIG. 20 is a schematic configuration diagram showing a system configuration of a digital copying machine according to a sixth embodiment of the present invention.
FIG. 21 is a schematic explanatory diagram illustrating a document according to a sixth embodiment of the present invention.
[Explanation of symbols]
20 ... Digital copier
21 ... Common bus
22 ... CPU
23 ... Scanner
24 ... Printer
25. Image processing apparatus
26. Image memory
27 ... Rotation processing unit
28: Compression / decompression processor
30 ... Hard disk
31 ... Character image determination unit
32 ... sentence direction judgment part
33 ... Memory
Claims (8)
前記画像入力手段によって入力された前記画像データから前記原稿画像を直交する2方向に走査する事により得られる2つの走査データを抽出する走査データ抽出手段と、
前記走査データ抽出手段によって得られる前記2つの走査データの、前記走査方向に沿ったラインにおけるデータ度数を夫々抽出し、この抽出された前記データ度数が所定の上閾値以上である上ライン数及び前記データ度数が所定の下閾値以下である下ライン数を合計し、この合計された合計ライン数が大きいライン方向を平坦ライン方向であると判断する平坦ライン方向判別手段と、
前記平坦ライン方向と圧縮走査方向とが一致しない場合には、前記画像データを90°回転処理して、前記平坦ライン方向と前記圧縮走査方向とを一致させる回転手段と、
前記平坦ライン方向と前記圧縮走査方向とが一致しない前記画像データは圧縮処理しないで、前記平坦ライン方向と前記圧縮走査方向とが一致する前記画像データを圧縮処理する圧縮手段と、
前記圧縮手段により形成される圧縮データを記憶するデータ記億手段と、
前記データ記憶手段に記憶される前記圧縮データを伸長処理すると共に前記圧縮データが前記回転手段により回転されている場合には、前記圧縮データを回転処理して前記画像データを復元する復元手段とを具備することを特徴とする画像処理装置。Image input means for inputting image data obtained from a document image;
And scan data extracting means for extracting two scanning data obtained by scanning in two directions orthogonal to the original image from the image data input by said image input means,
The data frequencies in the lines along the scanning direction of the two scan data obtained by the scan data extracting unit are extracted, respectively, and the extracted upper data number and the upper line number in which the data frequency is a predetermined upper threshold value or more A flat line direction discriminating means for summing up the number of lower lines whose data frequency is equal to or lower than a predetermined lower threshold, and judging that the line direction having a large total line number is a flat line direction;
When the flat line direction and the compression scanning direction do not coincide with each other, the image data is rotated by 90 ° to rotate the flat line direction and the compression scanning direction .
Compression means for compressing the image data in which the flat line direction and the compression scanning direction match without compressing the image data in which the flat line direction and the compression scanning direction do not match ;
A data SL billion means for storing the compressed data formed by the compression means,
And restoration means the compressed data as well as decompression the compressed data stored in said data storage means when it is rotated by said rotation means, to restore the image data to the rotation process the compressed data An image processing apparatus comprising:
前記走査データ抽出手段は、前記画像分割手段により分割される前記領域毎に分割走査データを抽出することを特徴とする請求項1又は請求項2記載の画像処理装置。 Image division means for dividing the image data input by the image input means for each arbitrary area of the document image;
3. The image processing apparatus according to claim 1, wherein the scanning data extracting unit extracts divided scanning data for each of the areas divided by the image dividing unit .
前記画像入力手段によって入力された前記画像データから前記原稿画像を直交する2方向に走査する事により得られる2つの走査データを抽出する走査データ抽出手段と、
前記走査データ抽出手段によって得られる前記2つの走査データの、前記走査方向に沿ったラインにおけるデータ度数を夫々抽出し、この抽出された前記データ度数が所定の上閾値以上である上ライン数及び前記データ度数が所定の下閾値以下である下ライン数を合計し、この合計された合計ライン数が大きいライン方向を平坦ライン方向であると判断する平坦ライン方向判別手段と、
前記平坦ライン方向と圧縮走査方向とが一致しない場合には、前記画像データを90°回転処理して、前記平坦ライン方向と前記圧縮走査方向とを一致させる回転手段と、
前記平坦ライン方向と前記圧縮走査方向とが一致しない前記画像データは圧縮処理しないで、前記平坦ライン方向と前記圧縮走査方向とが一致する前記画像データを圧縮処理する圧縮手段と、
前記圧縮手段により形成される圧縮データを記憶するデータ記億手段と、
前記データ記憶手段に記憶される前記圧縮データを伸長処理すると共に前記圧縮データが前記回転手段により回転されている場合には、前記圧縮データを回転処理して前記画像データを復元する復元手段と、
前記復元手段により復元される前記画像データに基づき印刷画像を形成する画像出力手段とを具備することを特徴とする画像形成装置。Image input means for inputting image data obtained from a document image;
And scan data extracting means for extracting two scanning data obtained by scanning in two directions orthogonal to the original image from the image data input by said image input means,
The data frequencies in the lines along the scanning direction of the two scan data obtained by the scan data extracting unit are extracted, respectively, and the extracted upper data number and the upper line number in which the data frequency is a predetermined upper threshold value or more A flat line direction discriminating means for summing up the number of lower lines whose data frequency is equal to or lower than a predetermined lower threshold, and judging that the line direction having a large total line number is a flat line direction ;
When the flat line direction and the compression scanning direction do not coincide with each other, the image data is rotated by 90 ° to rotate the flat line direction and the compression scanning direction .
Compression means for compressing the image data in which the flat line direction and the compression scanning direction match without compressing the image data in which the flat line direction and the compression scanning direction do not match ;
A data SL billion means for storing compressed data that will be formed by the compression means,
When said compressed data is rotated by said rotation means, restoring means for rotating processing the compressed data to restore the image data as well as decompression processing Ki圧 reduced data before being stored in said data storage means When,
An image forming apparatus comprising: an image output unit that forms a print image based on the image data restored by the restoration unit.
前記走査データ抽出手段は、前記画像分割手段により分割される前記領域毎に分割走査 データを抽出することを特徴とする請求項4又は請求項5記載の画像形成装置。 Image division means for dividing the image data input by the image input means for each arbitrary area of the document image;
6. The image forming apparatus according to claim 4, wherein the scanning data extracting unit extracts divided scanning data for each of the areas divided by the image dividing unit .
前記画像入力手段によって入力された前記画像データから前記原稿画像を直交する2方向に走査する事により得られる2つの走査データを抽出する走査データ抽出手段と、
前記走査データ抽出手段によって得られる前記2つの走査データ毎に、前記走査方向に沿ったラインにおける差分が、所定の下閾値以下であるライン数の合計が大きい方向を平坦ライン方向であると判断する平坦ライン方向判別手段と、
前記平坦ライン方向と圧縮走査方向とが一致しない場合には、前記画像データを90°回転処理して、前記平坦ライン方向と前記圧縮走査方向とを一致させる回転手段と、
前記平坦ライン方向と前記圧縮走査方向とが一致しない前記画像データは圧縮処理しないで、前記平坦ライン方向と前記圧縮走査方向とが一致する前記画像データを圧縮処理する圧縮手段と、
前記圧縮手段により形成される圧縮データを記憶するデータ記億手段と、
前記データ記憶手段に記憶される前記圧縮データを伸長処理すると共に前記圧縮データが前記回転手段により回転されている場合には、前記圧縮データを回転処理して前記画像データを復元する復元手段とを具備することを特徴とする画像処理装置。Image input means for inputting image data obtained from a document image;
And scan data extracting means for extracting two scanning data obtained by scanning in two directions orthogonal to the original image from the image data input by said image input means,
For each of the two pieces of scanning data obtained by the scanning data extracting means, the direction in which the difference in the lines along the scanning direction is equal to or smaller than a predetermined lower threshold is determined to be the flat line direction. Flat line direction discriminating means;
When the flat line direction and the compression scanning direction do not coincide with each other, the image data is rotated by 90 ° to rotate the flat line direction and the compression scanning direction .
Compression means for compressing the image data in which the flat line direction and the compression scanning direction match without compressing the image data in which the flat line direction and the compression scanning direction do not match ;
A data SL billion means for storing compressed data that will be formed by the compression means,
When said compressed data is rotated by said rotation means, restoring means for rotating processing the compressed data to restore the image data as well as decompression processing Ki圧 reduced data before being stored in said data storage means An image processing apparatus comprising:
前記画像入力手段によって入力された前記画像データから前記原稿画像を直交する2方向に走査する事により得られる2つの走査データを抽出する走査データ抽出手段と、
前記走査データ抽出手段によって得られる前記2つの走査データ毎に、前記走査方向に沿ったラインにおける差分が、所定の下閾値以下であるライン数の合計が大きい方向を平坦ライン方向であると判断する平坦ライン方向判別手段と、
前記平坦ライン方向と圧縮走査方向とが一致しない場合には、前記画像データを90°回転処理して、前記平坦ライン方向と前記圧縮走査方向とを一致させる回転手段と、
前記平坦ライン方向と前記圧縮走査方向とが一致しない前記画像データは圧縮処理しないで、前記平坦ライン方向と前記圧縮走査方向とが一致する前記画像データを圧縮処理する圧縮手段と、
前記圧縮手段により形成される圧縮データを記憶するデータ記億手段と、
前記データ記憶手段に記憶される前記圧縮データを伸長処理すると共に前記圧縮データが前記回転手段により回転されている場合には、前記圧縮データを回転処理して前記画像データを復元する復元手段と、
前記復元手段により復元される前記画像データに基づき印刷画像を形成する画像出力手段とを具備することを特徴とする画像形成装置。Image input means for inputting image data obtained from a document image;
Scanning data extraction means for extracting two scanning data obtained by scanning the document image in two orthogonal directions from the image data input by the image input means ;
For each of the two pieces of scanning data obtained by the scanning data extracting means, the direction in which the difference in the lines along the scanning direction is equal to or smaller than a predetermined lower threshold is determined to be the flat line direction. Flat line direction discriminating means;
When the flat line direction and the compression scanning direction do not coincide with each other, the image data is rotated by 90 ° to rotate the flat line direction and the compression scanning direction .
Compression means for compressing the image data in which the flat line direction and the compression scanning direction match without compressing the image data in which the flat line direction and the compression scanning direction do not match ;
A data SL billion means for storing compressed data that will be formed by the compression means,
When said compressed data is rotated by said rotation means, restoring means for rotating processing the compressed data to restore the image data as well as decompression processing Ki圧 reduced data before being stored in said data storage means When,
An image forming apparatus comprising: an image output unit that forms a print image based on the image data restored by the restoration unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP09746699A JP3850006B2 (en) | 1999-04-05 | 1999-04-05 | Image processing apparatus and image forming apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP09746699A JP3850006B2 (en) | 1999-04-05 | 1999-04-05 | Image processing apparatus and image forming apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000295480A JP2000295480A (en) | 2000-10-20 |
JP3850006B2 true JP3850006B2 (en) | 2006-11-29 |
Family
ID=14193089
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP09746699A Expired - Fee Related JP3850006B2 (en) | 1999-04-05 | 1999-04-05 | Image processing apparatus and image forming apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3850006B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7093703B2 (en) | 2003-04-23 | 2006-08-22 | Koyo Seiko Co., Ltd. | One-way clutch integrated with a rolling bearing, and method of producing the same |
JP4757162B2 (en) * | 2006-09-29 | 2011-08-24 | シャープ株式会社 | Image encoding device, image decoding device, mobile phone, image encoding method, image decoding method, image encoding program, and image decoding program |
-
1999
- 1999-04-05 JP JP09746699A patent/JP3850006B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2000295480A (en) | 2000-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7106884B2 (en) | Digital watermark embedding apparatus for document, digital watermark extraction apparatus for document, and their control method | |
KR0159831B1 (en) | Method for detecting defect | |
EP0411231B1 (en) | Method for digitizing information written into forms by means of very large symbol matching | |
JP2918064B2 (en) | Method and apparatus for aligning images for template removal | |
CN1838725B (en) | Log data recording device and log data recording method | |
Kia | Document image compression and analysis | |
JP2000101851A (en) | Image processor | |
US8218911B2 (en) | Image processing apparatus and image processing method | |
JP2003152995A (en) | Image processing device | |
JPH0879536A (en) | Picture processing method | |
US20070285696A1 (en) | Image generating apparatus, image processing apparatus, recording medium and computer readable recording medium | |
US7742199B2 (en) | System and method for compressing and rotating image data | |
CN102271212A (en) | Background pattern image combining apparatus, background pattern image combining method, and computer program | |
JP3850006B2 (en) | Image processing apparatus and image forming apparatus | |
JPH07160812A (en) | Device and method for image processing | |
JPH1070654A (en) | Image processor | |
JP4792835B2 (en) | Image processing device | |
JP4001446B2 (en) | Method, apparatus and computer-readable recording medium for specifying image background color | |
JP4396710B2 (en) | Image processing apparatus, image processing apparatus control method, and image processing apparatus control program | |
JP2004104435A (en) | Picture reading method, picture reader and network system | |
JP3997696B2 (en) | Apparatus, method and recording medium for image processing | |
Fan et al. | A comprehensive image processing suite for book re-mastering | |
CN113365071B (en) | Image layered compression method and image layered compression device | |
JP4001482B2 (en) | Image compression method, decompression method and program | |
JP3926030B2 (en) | Image forming apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060210 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20060213 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060222 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20060213 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060516 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060714 |
|
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: 20060822 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060828 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |