JP2004228956A - Image processor, program for processing image, and storage medium - Google Patents

Image processor, program for processing image, and storage medium Download PDF

Info

Publication number
JP2004228956A
JP2004228956A JP2003014764A JP2003014764A JP2004228956A JP 2004228956 A JP2004228956 A JP 2004228956A JP 2003014764 A JP2003014764 A JP 2003014764A JP 2003014764 A JP2003014764 A JP 2003014764A JP 2004228956 A JP2004228956 A JP 2004228956A
Authority
JP
Japan
Prior art keywords
image
encoding
processing
black
compression
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.)
Granted
Application number
JP2003014764A
Other languages
Japanese (ja)
Other versions
JP4010452B2 (en
Inventor
Junichi Hara
潤一 原
Toshio Miyazawa
利夫 宮澤
Yasuyuki Nomizu
泰之 野水
Hiroyuki Sakuyama
宏幸 作山
Nekka Matsuura
熱河 松浦
Takanori Yano
隆則 矢野
Taku Kodama
児玉  卓
Yasuyuki Shinkai
康行 新海
Takayuki Nishimura
隆之 西村
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 JP2003014764A priority Critical patent/JP4010452B2/en
Publication of JP2004228956A publication Critical patent/JP2004228956A/en
Application granted granted Critical
Publication of JP4010452B2 publication Critical patent/JP4010452B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To process black-and-white images and other images with high efficiency by means of one coder by utilizing the image compression coding technique according to the JPEG 2000, and avoid the disadvantage of the JPEG 2000. <P>SOLUTION: The bit plane coding is one of features of the compression coding according to the JPEG 2000. Even a black-and-white image must be coded in a plurality of bit planes, as in usual, so far as it is expressed with multi-value data. This results in a useless coding to deteriorate the coding efficiency and slow the processing speed. Thereupon, an image region separating means 121 decides an image region, a process contents switching means 122 switches the process contents, based on the result. For the black-and-white image, some process is applied to its DC level conversion process result so that it can be handled, substantially the same as a two-value data, using a positive value plus 1 after the DC level conversion, an entropy coding process is made to dispense with useless processes, increase the processing speed and improve the coding efficiency without making a wavelet conversion and a quantizing process. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、デジタル複写機(複合機=MFPを含む)、プリンタ、スキャナ或いはパーソナルコンピュータ等の各種の画像処理装置、画像処理用プログラム及び記憶媒体に関する。
【0002】
【従来の技術】
一般に、この種の画像処理装置で取り扱う文書画像データには種々のものがある。例えば、大半は白黒画像であるが、部分的にカラー画像等の白黒画像以外の画像がレイアウトされているような文書、或いは、逆の文書も多々ある。
【0003】
また、高圧縮率にして高画質な画像の復元が可能な高精細画像圧縮伸長技術としてJPEG2000アルゴリズムによる画像圧縮符号化技術が注目されている。
【0004】
【特許文献1】
特開2001−297303公報
【0005】
【発明が解決しようとする課題】
JPEG2000アルゴリズムを利用すれば、幾つかの高能率符号化のための処理を含んでおり、基本的に、高効率、高圧縮率の圧縮符号化が可能であるが、それらの処理が対象画像の特性によっては必ずしも有効とは限らず、無駄な処理となって、却って、符号化効率を悪くし、高速処理化を妨げるケースもある。
【0006】
即ち、JPEG2000アルゴリズムによる圧縮符号化の特徴を考えた場合、その一つとして圧縮率を高めるためのビットプレーン符号化があり、本来的には2値データと同等に扱い得る白黒画像の場合であっても多値データで表現されている以上、通常通り、複数のビットプレーンの符号化を行う必要があり、結果的に無駄な符号化を行っているのと同じ意味になり、符号化効率が悪く、処理速度も遅くなってしまう不具合がある。
【0007】
本発明の目的は、各種の文書画像データ等を圧縮符号化する上で、JPEG2000アルゴリズムによる画像圧縮符号化技術を利用し、基本的に一つの符号手段で各種特性を持つ画像データに対して高能率に処理可能とし、かつ、その際のJPEG2000アルゴリズムの不都合を回避できるようにすることである。
【0008】
【課題を解決するための手段】
請求項1記載の発明の画像処理装置は、文書画像データをJPEG2000アルゴリズムに従い圧縮符号化する圧縮符号化手段と、前記文書画像データ中に混在する白黒画像領域と白黒以外の画像領域との像域分離信号に基づき前記圧縮符号化手段による処理内容を切換える処理内容切換え手段と、を備える。
【0009】
従って、基本的にJPEG2000アルゴリズムに従い圧縮符号化する圧縮符号化手段を用いることで、白黒画像領域と白黒以外の画像領域との圧縮符号化処理について単一の符号手段で対応可能で構成が簡単で高能率な上に、この圧縮符号化手段による処理内容を文書画像データ中に混在する白黒画像領域と白黒以外の画像領域との像域分離信号に基づき切換えることにより、よりJPEG2000アルゴリズムの特徴を活かしてこのJPEG2000アルゴリズムの不都合を回避することが可能となる。
【0010】
請求項2記載の発明は、請求項1記載の画像処理装置において、前記文書画像データ中に混在する白黒画像領域と白黒以外の画像領域とを分離して像域分離信号を出力する像域分離手段を備える。
【0011】
従って、適用機種が例えばパーソナルコンピュータ等にあっては、像域分離信号を外部から入力されるように構成してもよいが、適用機種が例えばデジタル複写機等の画像形成装置の場合には、自身が像域分離手段を備えることにより、自機単独で適正な画像圧縮符号化処理が可能となる。
【0012】
請求項3記載の発明は、請求項1又は2記載の画像処理装置において、前記圧縮符号化手段は、少なくともDCレベル変換、色空間変換処理、2次元ウェーブレット変換処理、量子化処理及びエントロピー符号化処理という手順で文書画像データを圧縮符号化するものであり、前記処理内容切換え手段は、像域分離信号により白黒以外の画像領域として分離された領域に対しては通常符号化モードとし前記DCレベル変換処理から全ての符号化処理を行わせ、像域分離信号により白黒画像領域として分離された領域に対しては白黒符号化モードとしDCレベル変換後の正の値に1を加えた値を用い、かつ、ウェーブレット分割レベルを0として、エントロピー符号化処理を行わせるように、前記圧縮符号化手段中の処理内容を切換える。
【0013】
従って、JPEG2000アルゴリズムによる圧縮符号化の特徴を考えた場合、その一つとして圧縮率を高めるためのビットプレーン符号化があり、本来的には2値データと同等に扱い得る白黒画像の場合であっても多値データで表現されている以上、通常通り、複数のビットプレーンの符号化を行う必要があり、結果的に無駄な符号化を行っているのと同じ意味になり、符号化効率が悪く、処理速度も遅くなってしまう不具合がある点に着目し、請求項1又は2記載の発明の具体的な内容として、白黒画像の場合には、DCレベル変換処理結果に細工を施すことにより実質的に2値データと同様に扱えるようにし、2次元ウェーブレット変換処理や量子化処理を行わずに、エントロピー符号化処理のみを行わせることで、無駄な処理を省くことができ、処理の高速化、符号化効率を向上させることができる。即ち、白黒画像と判断されたときは、値を0:白(若しくは黒)、255:黒(8ビット画像の場合、若しくは、白)とし、DCレベル変換後には、その値が−128と127になる。この正の値に1を加えると、−128と128になる。この値に対して、ウェーブレット分割レベル0のウェーブレット、即ち、ウェーブレット変換を行わずに、次の3コーディングパス(−ビットプレーンに3回のパス:JPEG2000標準)を行うと、+128と−128はともに、7ビット目だけが値がある(即ち、7ビット目が1で他の0から6ビット目と8ビット目以上は0)ものとなっている。これを符号化すると、符号化の対象が7ビット目だけとなるので、白黒混在画像の場合、符号化効率が上がる。
【0014】
請求項4記載の発明は、請求項1ないし3の何れか一記載の画像処理装置において、前記処理内容切換え手段は、前記文書画像データ全体に対して通常符号化モードと白黒符号化モードとの何れか一方を適用するように処理内容を切換える。
【0015】
従って、通常符号化モードと白黒符号化モードとの切換えを、文書画像データ全体を単位として行わせることで、請求項1ないし3記載の発明を最も簡単に実現できる。
【0016】
請求項5記載の発明は、請求項4記載の画像処理装置において、前記圧縮符号化手段は、圧縮符号化した符号データのメインヘッダ領域中に適用した通常符号化モードと白黒符号化モードとの何れか一方の符号化モード情報を記述する。
【0017】
従って、圧縮符号化した符号データのメインヘッダ領域中に符号化モード情報が記述されるので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。
【0018】
請求項6記載の発明は、請求項1ないし3の何れか一記載の画像処理装置において、前記処理内容切換え手段は、前記文書画像データを複数に分割して符号化する或る小領域単位で通常符号化モードとするか白黒符号化モードとするか処理内容を動的に切換える。
【0019】
従って、通常符号化モードと白黒符号化モードとの切換えを、文書画像データを複数に分割して符号化する或る小領域、例えば、請求項7記載の発明のようにタイル、請求項8記載の発明のようにラスタラインを単位として行わせることで、請求項1ないし3記載の発明を文書画像データの状態に合わせて木目細かく実現できる。
【0020】
請求項9記載の発明は、請求項7記載の画像処理装置において、前記圧縮符号化手段は、圧縮符号化した符号データのメインヘッダ領域中に各タイル毎に適用した通常符号化モードと白黒符号化モードとの何れかの符号化モード情報を記述する。
【0021】
従って、圧縮符号化した符号データのメインヘッダ領域中に各タイル毎に符号化モード情報が記述されるので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。
【0022】
請求項10記載の発明は、請求項8記載の画像処理装置において、前記圧縮符号化手段は、圧縮符号化した符号データのメインヘッダ領域中に適用した通常符号化モードと白黒符号化モードとの切換えラスタラインに関する符号化モード情報を記述する。
【0023】
従って、圧縮符号化した符号データのメインヘッダ領域中に切換えラスタラインに関する符号化モード情報が記述されるので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。
【0024】
請求項11記載の発明は、請求項7記載の画像処理装置において、前記圧縮符号化手段は、圧縮符号化した各タイルの符号データ中にそのタイルに適用した通常符号化モードと白黒符号化モードとの何れかの符号化モード情報を記述する。
【0025】
従って、圧縮符号化した各タイルの符号データ中にそのタイルに適用した符号化モード情報が記述されるので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。
【0026】
請求項12記載の発明は、請求項7記載の画像処理装置において、前記圧縮符号化手段は、圧縮符号化した符号データ中に適用した通常符号化モードと白黒符号化モードとの切換えラスタラインに関する符号化モード情報を記述する。
【0027】
従って、圧縮符号化した各タイルの符号データ中に切換えラスタラインに関する符号化モード情報が記述されるので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。
【0028】
請求項13記載の発明の画像処理用プログラムは、コンピュータにインストールされ、前記コンピュータに、文書画像データをJPEG2000アルゴリズムに従い圧縮符号化する圧縮符号化機能と前記文書画像データ中に混在する白黒画像領域と白黒画像以外の画像領域との像域分離信号に基づき前記圧縮符号化機能による処理内容を切換える処理内容切換え機能と、を実行させる。
【0029】
従って、基本的にJPEG2000アルゴリズムに従い圧縮符号化する圧縮符号化機能を用いることで、白黒画像領域と白黒画像以外の画像領域との圧縮符号化処理について単一の符号手段で対応可能で構成が簡単で高能率な上に、この圧縮符号化機能による処理内容を文書画像データ中に混在する白黒画像領域と白黒画像以外の画像領域との像域分離信号に基づき切換えることにより、よりJPEG2000アルゴリズムの特徴を活かしてこのJPEG2000アルゴリズムの不都合を回避することが可能となる。
【0030】
請求項14記載の発明のコンピュータ読取り可能な記憶媒体は、請求項13記載の画像処理用プログラムを記憶している。
【0031】
従って、請求項13記載の発明と同様な作用を奏する。
【0032】
【発明の実施の形態】
本発明の実施の一形態を図面に基づいて説明する。
【0033】
[JPEG2000について概略説明]
本実施の形態は、JPEG2000アルゴリズムを利用するものであり、まず、JPEG2000について概略説明する。
【0034】
図1は、JPEG2000アルゴリズムの基本を説明するための機能ブロック図である。図1に示すように、JPEG2000アルゴリズムは、色空間変換・逆変換部101、2次元ウェーブレット変換・逆変換部102、量子化・逆量子化部103、エントロピー符号化・復号化部104、タグ処理部105によって構成されている。以下、各部について説明する。
【0035】
色空間変換・逆変換部101及び2次元ウェーブレット変換・逆変換部102について図2及び図3を参照しながら説明する。
【0036】
図2は、カラー画像である原画像の分割された各コンポーネントの一例を示す模式図である。カラー画像は、一般に、図2に示すように、原画像の各コンポーネントR、G、B(111)が、例えばRGB原色系によって分離されている。そして、原画像の各コンポーネントR、G、Bは、さらに、矩形をした領域であるタイル112によって分割される。個々のタイル112、例えば、R00,R01,…,R15/G00,G01,…,G15/B00,B01,…,B15は、圧縮伸長プロセスを実行する際の基本単位を構成する。従って、圧縮伸長動作は、コンポーネントR、G、B(111)毎、そしてタイル112毎に、独立して行なわれる。
【0037】
ここで、画像データの符号化時、各タイル112のデータは、図1に示す色空間変換・逆変換部101に入力され、色空間変換を施された後、2次元ウェーブレット変換・逆変換部102で2次元ウェーブレット変換(順変換)が適用されて周波数帯に空間分割される。
【0038】
図3は、デコンポジションレベル数が3である場合の各デコンポジションレベルにおけるサブバンドを示す模式図である。2次元ウェーブレット変換・逆変換部102は、原画像のタイル分割によって得られたタイル原画像(0LL)(デコンポジションレベル0)に対して、2次元ウェーブレット変換を施し、デコンポジションレベル1に示すサブバンド(1LL,1HL,1LH,1HH)を分離する。そして、2次元ウェーブレット変換・逆変換部102は、引き続き、この階層における低周波成分1LLに対して、2次元ウェーブレット変換を施し、デコンポジションレベル2に示すサブバンド(2LL,2HL,2LH,2HH)を分離する。2次元ウェーブレット変換・逆変換部102は、順次同様に、低周波成分2LLに対しても、2次元ウェーブレット変換を施し、デコンポジションレベル3に示すサブバンド(3LL,3HL,3LH,3HH)を分離する。図3中、各デコンポジションレベルにおいて符号化の対象となるサブバンドはグレーで示されている。例えば、デコンポジションレベル数を3とした場合、グレーで示したサブバンド(3HL,3LH,3HH,2HL,2LH,2HH,1HL,1LH,1HH)が符号化対象となり、3LLサブバンドは符号化されない。
【0039】
次いで、量子化・逆量子化部103では、指定した符号化の順番で符号化の対象となるビットが定められた後、対象ビット周辺のビットからコンテキストが生成される。
【0040】
図4は、プレシンクトを例示する模式図である。量子化の処理が終わったウェーブレット係数は、個々のサブバンド毎に、「プレシンクト」と呼ばれる重複しない矩形に分割される。これは、インプリメンテーションでメモリを効率的に使うために導入されたものである。図4に示すように、一つのプレシンクトは、空間的に一致した3つの矩形領域からなっている。さらに、個々のプレシンクトは、重複しない矩形の「コードブロック」に分けられる。これは、エントロピーコーディングを行う際の基本単位となる。
【0041】
図5は、2次元ウェーブレット変換後の2次元ウェーブレット係数の値を「ビットプレーン」単位に分解し、画素或いはコードブロック毎に「ビットプレーン」に順位付けを行う処理の概要を示す模式図である。ウェーブレット変換後の係数値は、そのまま量子化し符号化することも可能であるが、JPEG2000では符号化効率を上げるために、係数値を「ビットプレーン」単位に分解し、画素或いはコードブロック毎に「ビットプレーン」に順位付けを行うことができる。図5には、その手順を簡単に示した。この例は、原画像(32×32画素)を16×16画素のタイル4つで分割した場合の例であり、デコンポジションレベル1のプレシンクトとコードブロックとの大きさは、各々8×8画素と4×4画素としている。プレシンクトとコードブロックの番号とは、ラスター順に付けられる。タイル境界外に対する画素拡張にはミラーリング法を使い、可逆(5,3)フィルタでウェーブレット変換を行い、デコンポジションレベル1のウェーブレット係数値を求めている。
【0042】
また、図5には、タイル0/プレシンクト3/コードブロック3について、代表的な「レイヤ」についての概念的な模式図も併せて示している。レイヤの構造は、ウェーブレット係数値を横方向(ビットプレーン方向)から見ると理解し易い。1つのレイヤは任意の数のビットプレーンから構成される。この例では、レイヤ0、1、2、3は、各々、1、3、1という3つのビットプレーンからなっている。そして、LSBに近いビットプレーンを含むレイヤ程、先に量子化の対象となり、逆に、MSBに近いレイヤは最後まで量子化されずに残ることになる。LSBに近いレイヤから破棄する方法はトランケーションと呼ばれ、量子化率を細かく制御することが可能である。
【0043】
次いで、エントロピー符号化・復号化部104について図6を参照しながら説明する。図6は、符号化された画像データのコードストリームを例示する模式図である。エントロピー符号化・復号化部104(図1参照)では、コンテキストと対象ビットとから、確率推定によって各コンポーネントRGBのタイル112に対する符号化を行う。こうして、原画像の全てのコンポーネントRGBについて、タイル112単位で符号化処理が行われる。
【0044】
次いで、タグ処理部105について説明する。タグ処理部105は、エントロピー符号化・復号化部104からの全符号化データを1本のコードストリームに結合するとともに、それにタグを付加する処理を行う。図6に、コードストリームの構造を簡単に示している。このようなコードストリームの先頭と各タイル112を構成する部分タイルの先頭には、ヘッダと呼ばれるタグ情報が付加され、その後に、各タイル112の符号化データが続く。そして、コードストリームの終端には、再びタグが置かれる。
【0045】
一方、復号化時には、符号化時とは逆に、各コンポーネントRGBの各タイル112のコードストリームから画像データを生成する。このような処理について、図1を用いて簡単に説明する。タグ処理部105は、外部より入力したコードストリームに付加されたタグ情報を解釈し、コードストリームを各コンポーネントRGBの各タイル112のコードストリームに分解し、その各コンポーネントRGBの各タイル112のコードストリーム毎に復号化処理を行う。この際、コードストリーム内のタグ情報に基づく順番で復号化の対象となるビットの位置が定められるとともに、量子化・逆量子化部103において、その対象ビット位置の周辺ビット(既に復号化を終えている)の並びからコンテキストを生成する。そして、エントロピー符号化・復号化部104では、そのコンテキストとコードストリームとから確率推定によって復号化を行なって対象ビットを生成し、それを対象ビットの位置に書き込む。このようにして復号化されたデータは、周波数帯域毎に空間分割されているため、これを2次元ウェーブレット変換・逆変換部102で2次元ウェーブレット逆変換を行うことにより、画像データ中の各コンポーネントRGBにおける各タイル112が復元される。復元されたデータは、色空間変換・逆変換部101によって元の表色系のデータに変換される。
【0046】
次に、JPEG2000の符号フォーマット例を説明する。図7はJPEG2000の符号フォーマットを示す概略図である。当該符号フォーマットは、符号データの始まりを示すSOC(Start of Codestream)マーカで始まり、その後に、符号化のパラメータや量子化のパラメータを記述したメインヘッダが続き、さらに、実際の符号データが続く構成である。実際の符号データは、SOT(Start of Tile−part)マーカで始まり、タイルヘッダ、SOD(Start of Data)マーカ、タイルデータ(符号)で構成される。これら画像全体に相当する符号データの後に、符号の終了を示すEOC(End of Codestream)マーカが付加される。
【0047】
[デジタルフルカラー複写機の全体構成]
次に、本実施の形態の画像処理装置であるデジタルフルカラー複写機の構成例について、その概略構成を示す図8を参照して説明する。
【0048】
このデジタルカラー複写機1は、データ蓄積機能を有するMFP=複合機としても機能するもので、プリンタエンジンとして機能するカラープリンタであるプリンタ2と、プリンタ2の上部に設置された画像読取装置としてのカラーイメージスキャナであるスキャナ3とから構成されている。
【0049】
プリンタ2は、スキャナ3で光学的に読取られた原稿の画像データや外部装置から送信された画像データ等に基づいて作像ユニット4で電子写真方式による画像形成を行い、この画像を給紙部5から用紙搬送部6で用紙搬送路7を経て搬送される記録媒体である用紙Pに転写し、画像が転写された用紙Pを搬送ベルト8で定着部9に搬送し、用紙Pの転写画像を定着部9で加熱加圧することにより定着して排紙トレイ10に排紙する構造である。
【0050】
作像ユニット4は、回転するドラム状の感光体11の周囲に、感光体11の表面を一様に帯電させる帯電部12、一様帯電した感光体11の表面に対する露光走査によって色毎の画像データに基づく静電潜像を感光体11上に形成する露光部13、シアン(C),マゼンタ(M),イエロー(Y),ブラック(K)のトナーを有して色毎の静電潜像に対応するトナーを付着させて可視像であるトナー像を形成するリボルバー方式のカラー現像部14、順次色毎のトナー像を複数のローラに支持された中間転写ベルト15上に転写させる中間転写部16、中間転写ベルト15上に転写されず感光体11上に残留するトナーを掻き落す感光体クリーニング部17、感光体11上の電荷を除電する除電部18等を配置することにより形成されており、さらに、中間転写ベルト15上のトナー像を用紙P上に一括転写させる転写部19、用紙P上に一括転写されず中間転写ベルト15上に残留するトナーを掻き落すベルトクリーニング部20を配置することにより形成されている。
【0051】
次に、スキャナ3について説明する。スキャナ3は、スキャナ本体21と、スキャナ本体21の上部に設けられた原稿搬送部であるADF(自動原稿搬送装置)22とから構成されている。スキャナ本体21の筐体23の上面には、原稿固定モードでの原稿画像の読取時に原稿が載置される載置原稿用ガラス24と、原稿搬送モードでの原稿画像の読取時に使用される搬送原稿用ガラス25とが設けられている。ここで、原稿固定モードとは、載置原稿用ガラス24上に載置された状態の原稿の画像を読取る動作モードであり、原稿搬送モードとは、ADF22により原稿を自動給紙し、自動給紙された原稿が搬送原稿用ガラス25上を通過する際にその原稿の画像を読取る動作モードである。
【0052】
また、筐体23の内部であって載置原稿用ガラス24に下方から対向する位置には、原稿に光を照射する露光手段としての照明ランプ(高輝度Xeランプ)26及びミラー27を備える第一走行体28が、載置原稿用ガラス24に沿って副走査方向に移動自在に配置されている。第一走行体28の反射光路には、2個のミラー29,30を備える第二走行体31が、載置原稿用ガラス24に沿って副走査方向に移動自在に配置されており、この第二走行体31の反射光路には、レンズ32を介してカラーラインセンサであるCCD(Charge Coupled Device)33を搭載したSBU(Sensor Board Unit)34が位置している。なお、CCD33が光電変換素子として機能する。
【0053】
副走査手段としての第一走行体28と第二走行体31とには、ステッピングモータ35がプーリやワイヤなど(いずれも図示せず)により連結されており、第一走行体28と第二走行体31とは、図7中左側から右側へ2:1の速度比で同一の副走査方向に移動自在とされている。なお、本実施の形態のデジタルカラー複写機1は、変倍機能を備えるものであり、拡大/縮小変倍コピー時には、その変倍率に応じてステッピングモータ35の速度を制御することにより、第一,第二走行体28,31の原稿に対する移動速度を変更させることにより、副走査方向の変倍処理がメカ的に行われる。主走査方向の変倍は後述するような電気的変倍処理により実行される。
【0054】
このようなデジタルフルカラー複写機1は、複数のマイクロコンピュータで構成される制御系により制御される。図9は、これらの制御系のうち、画像処理に関わる制御系の電気的な接続を示す概略ブロック図である。この制御系は、CPU41、ROM42、RAM43及び操作パネル44等が、バス45で接続されている。CPU41は、各種演算を行い、画像処理等の処理を集中的に制御する。ROM42には、このCPU41が実行する処理に関わる各種プログラムや固定データが格納されている。RAM43は、CPU41のワークエリアとなる。IPU(Image Processing Unit)46は、各種画像処理に関わるハードウエアを備えている。記憶媒体となるROM42は、EEPROMやフラッシュメモリ等の不揮発性メモリを備えていて、ROM42内に格納されているプログラムはCPU41の制御により、I/Oポート47を介して外部装置(図示せず)からダウンロードされるプログラムに書換え可能である。即ち、本実施の形態では、ROM42に各種機能を実現するためのプログラムが格納されており、このROM42がプログラムを記憶した記憶媒体として機能している。
【0055】
また、本実施の形態のデジタル複写機1は、図1を参照して説明したJPEG2000アルゴリズムの各機能ブロックを備え、前述のようなJPEG2000アルゴリズムにより画像データの圧縮符号化を行う。即ち、図1に示したような圧縮符号化手段及び復号化手段の機能は、IPU46によりハードウエアが行う処理により実行しても、ROM42に記憶されているプログラムに基づいてCPU41が行う処理により実行してもよい。これにより、基本的には、スキャナ3で読取られ、IPU46で白シェーディング補正等の各種画像処理が施された複数枚の画像のデジタル画像データを、JPEG2000アルゴリズムにより圧縮符号化して、各画像のコードストリームを生成する。即ち、画像を1又は複数の矩形領域(タイル)に分割し、この矩形領域毎に画素値を離散ウェーブレット変換して階層的に圧縮符号化することを基本とする。
【0056】
[画像圧縮符号化処理]
図1中に示したJPEG2000アルゴリズムによる圧縮符号化手段を書き直すと、図10のように示すことができる。即ち、DCレベルシフト部101a、カラー変換部101b、ウェーブレット変換部102a、量子化部103a、係数モデリング部104a、算術符号化部104b、符号順序制御部105aをその処理順に並べることにより圧縮符号化手段106が構成されている。ここに、DCレベルシフト部101a及びカラー変換部101bは色空間変換・逆変換部101中に属するもので、DCレベルシフト部101aは入力される画像信号がRGB信号値のような正の数である場合に所定の変換式を用いて各信号値から信号のダイナミックレンジの1/2を減算するレベルシフト処理を行い、カラー変換部101bではRGB画像を輝度色差系のYCbCr画像に変換することによりカラー画像の圧縮効率を高める処理を行う。ウェーブレット変換部102aは2次元ウェーブレット変換・逆変換部102中に属し、前述したようなウェーブレット係数への変換処理を行う。量子化部103aは量子化・逆量子化部103に属し、効率のよい圧縮を行うためにウェーブレット係数のダイナミックレンジを削減する処理を行う。この量子化処理の一例として、後述のエントロピー符号化がビットプレーンであることを利用して、完成した符号列の下位ビットプレーンを切り捨てることにより量子化するポスト量子化方式がある。
【0057】
係数モデリング部104a及び算術符号化部104bはブロックベースのビットプレーン符号化を行うエントロピー符号化・復号化部104に属する。このうち、係数モデリング部104aでは符号化対象となる多値ウェーブレット係数から2値算術符号化用のビットモデルを作成するものであり、この処理により符号化方法が決定される。算術符号化部104bにおける符号化方式には新しい2値画像符号方式であるMQ−Coderと称される方式が用いられる。符号順序制御部105aはタグ処理部105に含まれる。
【0058】
このようなJPEG2000アルゴリズムに従った圧縮符号化手段106に加えて、本実施の形態では、処理対象として入力される文書画像データに関してそのデータ中に混在する白黒画像領域と白黒画像以外の画像領域とを分離して像域分離信号を出力する像域分離手段としての像域分離部121と、この画像特性判別部121から出力される判別信号に応じて圧縮符号化手段106中の処理を取捨選択してその圧縮符号化の処理内容を異ならせる処理内容切換え手段としてのセレクタ122とが設けられている。
【0059】
この像域分離部121としては、画像の特徴に合った最適な画像処理を行うために白黒画像領域と白黒画像以外の画像領域とを分離するもので、公知の像域分離に関する技術、例えば、対象となる文書画像データについて背景色を特定し、この背景色を用いてボトムアップ的に文書画像の領域識別結果を得る特許文献1に示されるような方式を利用すればよく、その詳細は省略する。なお、特許文献1の場合の画像領域の分離は、白黒画像以外の画像領域と白黒・白黒画像領域との分離であるが、白黒・白黒画像領域中からの白黒画像領域と白黒画像領域との識別は、白黒画像認識の下限レベル、上限レベルの設定を適宜行い、これらのレベル範囲内に属する場合に白黒画像領域と認識し、白黒画像領域を除外すればよい。
【0060】
セレクタ122は、像域分離信号に応じて処理対象となる文書画像データの圧縮符号化手段106中の処理を取捨選択してその圧縮符号化の処理内容を異ならせるものであるが、特に、JPEG2000アルゴリズム中、DCレベル変換部101aの処理、カラー変換部101bの処理、2次元ウェーブレット変換部102aの処理、量子化部103aの処理及び算術符号化部104bの処理を像域分離信号に応じた取捨選択の対象として、画像データの特性に応じて圧縮符号化の処理内容を異ならせるものである。
【0061】
例えば、像域分離信号により白黒以外の画像領域として分離された領域に対しては通常符号化モードとし圧縮符号化手段106による処理を全て有効とし、DCレベル変換処理から全ての符号化処理を行わせる。一方、像域分離信号により白黒画像領域として分離された領域に対しては白黒符号化モードとし、DCレベルシフト部101aによるDCレベル変換後の値に正の値に1を加えた値を用い、かつ、ウェーブレット分割レベルを0として、エントロピー符号化処理を行わせる。即ち、カラー変換部101bの処理、2次元ウェーブレット変換部102aの処理、量子化部103aの処理及び算術符号化部104bの処理は省略するものとする。
【0062】
より具体的に、白黒画像と判断されたときは、値を0:白(若しくは黒)、255:黒(8ビット画像の場合、若しくは、白)とし、DCレベル変換後には、その値が−128と127になる。この正の値に1を加えると、−128と128(=10000000)になる。この値に対して、ウェーブレット分割レベル0のウェーブレット、即ち、ウェーブレット変換を行わずに、次の3コーディングパス(−ビットプレーンに3回のパス:JPEG2000標準)を行うと、+128と−128はともに、7ビット目だけが値がある(即ち、7ビット目が1で他の0から6ビット目と8ビット目以上は0)ものとなっている。これを符号化すると、符号化の対象が7ビット目だけとなるので、白黒混在画像の場合、符号化効率が上がる。即ち、2値データと同様に取り扱える。さらに、このようなビットデータの符号化の後の算術符号化部104bによるビットプレーン符号化も行わない(必要ない)。このとき、ウェーブレット変換部102aでの変換処理も省略しているので、ウェーブレット分割数を0とし、量子化なしの情報を後述のようにヘッダ中等に記述しておく。ちなみに、このような操作により、復号時には画素がとり得る値を超した値となるが(128×2=10000000=256)となるが、クリッピング処理が行われ、画素がとり得る最大値となり、元の白黒画像が復元される。
【0063】
これらの像域分離部121やセレクタ122の機能も、ROM42に記憶されているプログラムに基づいてCPU41が行う処理により実行してもよい。
【0064】
一般に、JPEG2000アルゴリズムによる圧縮符号化の特徴を考えた場合、その一つとして圧縮率を高めるための算術符号化部によるビットプレーン符号化があり、本来的には2値データと同等に扱い得る白黒画像の場合であっても多値データで表現されている以上、通常通り、複数のビットプレーンの符号化を行う必要があり、結果的に無駄な符号化を行っているのと同じ意味になり、符号化効率が悪く、処理速度も遅くなってしまう不具合がある。この点、本実施の形態によれば、白黒画像の場合にはDCレベル変換処理結果に細工を施すことにより実質的に2値データと同様に扱えるようにし、2次元ウェーブレット変換処理や量子化処理を行わず、かつ、ピットプレーン符号化を伴わないエントロピー符号化処理のみを行わせることで、無駄な処理を省くことができ、処理の高速化、符号化効率を向上させることができる。
【0065】
[具体的処理例]
いま、図11(a)に模式的に示すような白黒画像領域131と白黒画像以外の画像領域132とが混在する原稿133による文書画像データを処理対象とする場合の処理例を数例挙げて説明する。
【0066】
まず、第1の例として、最も単純には、例えば、文書画像データ中に占める白黒画像領域131と白黒画像以外の画像領域132との比率に応じて当該文書画像データ全体に対して白黒符号化モードか通常符号化モードかの何れかのモードを適用するようにセレクタ122で切換えるように構成することができる。この場合の圧縮符号化処理方式としては、複数のタイルに分割してタイル単位で符号化するタイル方式であっても、ラスタライン毎に分割してラスタライン単位で符号化するラスタ方式であってもよい。
【0067】
この場合、圧縮符号化手段106は、図12に示すように、圧縮符号化した符号データのメインヘッダ領域中に適用したモードが通常符号化モードと白黒符号化モードとの何れであるかの符号化モード情報(白黒符号化モード時のウェーブレット分割数が0で量子化なしの情報を含む)を記述しておけば、当該符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。図12の図示例は、タイル符号化方式であって(図11(b)参照)、白黒符号化モードを適用して文書画像データ全体を白黒符号化した例を示している。
【0068】
次に、第2のより実際的な例としては、或る小領域単位=タイル単位で処理モードを動的に切換えるようにしてもよい。例えば、図11(a)に示すような文書画像データを図11(b)に示すように複数のタイルA1,A2,…,F3,F4に分割し、そのタイル単位で圧縮符号化手段106による処理内容を白黒符号化モード用とするか通常符号化モード用とするかを切換えるようにしてもよい。
【0069】
図13はこの方式により圧縮符号化手段106により圧縮符号化処理された符号列の例を示し、図示例のように、そのメインヘッダ領域中に適用したモードが通常符号化モードと白黒符号化モードとの何れであるかの符号化モード情報をタイル毎に記述しておけば、当該符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。
【0070】
もっとも、メインヘッダ領域中に記述する方式に限らず、図14に示すように、圧縮符号化された各タイルの符号データ中(タイルヘッダ部)に個々に適用したモードが通常符号化モードと白黒符号化モードとの何れであるかの符号化モード情報を記述しておくようにしてもよい。この方式によっても、当該符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。
【0071】
第3のより実際的な例としては、或る小領域単位=ラスタライン単位で処理モードを動的に切換えるようにしてもよい。例えば、図11(a)に示すような文書画像データを図11(c)に示すように複数のラスタラインy0,y1,…に分割し、そのラスタライン単位で圧縮符号化手段106による処理内容を白黒符号化モード用とするか通常符号化モード用とするかを切換えるようにしてもよい。
【0072】
図15はこの方式により圧縮符号化手段106により圧縮符号化処理された符号列の例を示し、図示例のように、そのメインヘッダ領域中に適用したモードが通常符号化モードと白黒符号化モードとの何れであるかの符号化モード情報を、そのモードが変化するラスタラインによって記述しておけば、当該符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。図示例では、ラスタライン0から白黒符号化モードによる処理が行われ、ラスタラインy1で通常符号化モードに切換えられ、ラスタラインy3で白黒符号化モードに切換えられ、…、ことを示している。
【0073】
もっとも、メインヘッダ領域中に記述する方式に限らず、図16に示すように、圧縮符号化された符号データ中に個々に適用するモードが通常符号化モードと白黒符号化モードとで切換えられるラスタラインに関する情報を符号化モード情報として記述しておくようにしてもよい。この方式によっても、当該符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号可能となる。
【0074】
また、本実施の形態では、デジタル複写機が像域分離部121を備える構成として説明したが、自機でこれらを有しておらず外部信号として得られる構成でもよい。即ち、画像処理装置としての適用機種が例えばパーソナルコンピュータ等にあっては、像域分離信号を外部から入力されるように構成してもよいが、画像処理装置としての適用機種が例えば本実施の形態のようにデジタル複写機等の画像形成装置の場合には、自身が像域分離部121を備えることにより、自機単独で適正な画像圧縮符号化処理が可能となる。
【0075】
【発明の効果】
請求項1記載の発明の画像処理装置によれば、基本的にJPEG2000アルゴリズムに従い圧縮符号化する圧縮符号化手段を用いることで、白黒画像領域と白黒画像以外の画像領域との圧縮符号化処理について単一の符号手段で対応可能で構成が簡単で高能率な上に、この圧縮符号化手段による処理内容を文書画像データ中に混在する白黒画像領域と白黒画像以外の画像領域との像域分離信号に基づき切換えるようにしたので、よりJPEG2000アルゴリズムの特徴を活かしてこのJPEG2000アルゴリズムの不都合を回避することが可能となる。
【0076】
請求項2記載の発明によれば、請求項1記載の画像処理装置において、適用機種が例えばパーソナルコンピュータ等にあっては、像域分離信号を外部から入力されるように構成してもよいが、適用機種が例えばデジタル複写機等の画像形成装置の場合には、自身が像域分離手段を備えることにより、自機単独で適正な画像圧縮符号化処理を行わせることができる。
【0077】
請求項3記載の発明によれば、請求項1又は2記載の画像処理装置において、JPEG2000アルゴリズムによる圧縮符号化の特徴を考えた場合、その一つとして圧縮率を高めるためのビットプレーン符号化があり、本来的には2値データと同等に扱い得る白黒画像の場合であっても多値データで表現されている以上、通常通り、複数のビットプレーンの符号化を行う必要があり、結果的に無駄な符号化を行っているのと同じ意味になり、符号化効率が悪く、処理速度も遅くなってしまう不具合がある点に着目し、請求項1又は2記載の発明の具体的な内容として、白黒画像の場合にはDCレベル変換処理結果に細工を施すことにより実質的に2値データと同様に扱えるようにし、2次元ウェーブレット変換処理や量子化処理を行わずに、エントロピー符号化処理のみを行わせるようにしたので、無駄な処理を省くことができ、処理の高速化、符号化効率を向上させることができる。即ち、白黒画像と判断されたときは、値を0:白(若しくは黒)、255:黒(8ビット画像の場合、若しくは、白)とし、DCレベル変換後には、その値が−128と127になり、この正の値に1を加えると、−128と128になるので、この値に対して、ウェーブレット分割レベル0のウェーブレット、即ち、ウェーブレット変換を行わずに、次の3コーディングパス(−ビットプレーンに3回のパス:JPEG2000標準)を行うと、+128と−128はともに、7ビット目だけが値がある(即ち、7ビット目が1で他の0から6ビット目と8ビット目以上は0)ものとなっており、これを符号化すると、符号化の対象が7ビット目だけとなるので、白黒混在画像の場合、符号化効率を向上させることができる。
【0078】
請求項4記載の発明によれば、請求項1ないし3の何れか一記載の画像処理装置において、通常符号化モードと白黒符号化モードとの切換えを、文書画像データ全体を単位として行わせることで、請求項1ないし3記載の発明を最も簡単に実現することができる。
【0079】
請求項5記載の発明によれば、請求項4記載の画像処理装置において、圧縮符号化した符号データのメインヘッダ領域中に符号化モード情報を記述するようにしたので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号させることができる。
【0080】
請求項6記載の発明によれば、請求項1ないし3の何れか一記載の画像処理装置において、通常符号化モードと白黒符号化モードとの切換えを、文書画像データを複数に分割して符号化する或る小領域、例えば、請求項7記載の発明のようにタイル、請求項8記載の発明のようにラスタラインを単位として行わせるようにしたので、請求項1ないし3記載の発明を文書画像データの状態に合わせて木目細かく実現することができる。
【0081】
請求項9記載の発明によれば、請求項7記載の画像処理装置において、圧縮符号化した符号データのメインヘッダ領域中に各タイル毎に符号化モード情報を記述するようにしたので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号させることができる。
【0082】
請求項10記載の発明によれば、請求項8記載の画像処理装置において、圧縮符号化した符号データのメインヘッダ領域中に切換えラスタラインに関する符号化モード情報を記述するようにしたので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号させることができる。
【0083】
請求項11記載の発明によれば、請求項7記載の画像処理装置において、圧縮符号化した各タイルの符号データ中にそのタイルに適用した符号化モード情報を記述するようにしたので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号させることができる。
【0084】
請求項12記載の発明によれば、請求項7記載の画像処理装置において、圧縮符号化した各タイルの符号データ中に切換えラスタラインに関する符号化モード情報を記述するようにしたので、符号データの復号時にはこの符号化モード情報を参照することにより間違えることなく復号させることができる。
【0085】
請求項13記載の発明の画像処理用プログラムによれば、基本的にJPEG2000アルゴリズムに従い圧縮符号化する圧縮符号化機能を用いるようにしたので、白黒画像領域と白黒画像以外の画像領域との圧縮符号化処理について単一の符号手段で対応可能で構成が簡単で高能率な上に、この圧縮符号化機能による処理内容を文書画像データ中に混在する白黒画像領域と白黒画像以外の画像領域との像域分離信号に基づき切換えるようにしたので、よりJPEG2000アルゴリズムの特徴を活かしてこのJPEG2000アルゴリズムの不都合を回避することができる。
【0086】
請求項14記載の発明のコンピュータ読取り可能な記憶媒体によれば、請求項13記載の発明と同様な効果を奏することができる。
【図面の簡単な説明】
【図1】本発明の実施の形態の前提となるJPEG2000方式の基本となるアルゴリズムを実現するシステムの機能ブロック図である。
【図2】原画像の各コンポーネントの分割された矩形領域を示す説明図である。
【図3】デコンポジションレベル数が3の場合の、各デコンポジションレベルにおけるサブバンドを示す説明図である。
【図4】プレシンクトを示す説明図である。
【図5】ビットプレーンに順位付けする手順の一例を示す説明図である。である。
【図6】符号化された画像データのコードストリームを例示する模式図である。
【図7】JPEG2000の符号フォーマットを示す概略図である。
【図8】本発明の一実施の形態の画像処理装置としてのデジタルフルカラー複写機を示す概略構成図である。
【図9】その制御系を示す概略ブロック図である。
【図10】特徴部分となる圧縮符号化処理部分を示すブロック図である。
【図11】処理対象となる文書画像データ例等を示す説明図である。
【図12】ページ単位の処理時の符号データ例を示す説明図である。
【図13】タイル単位の処理時の符号データ例を示す説明図である。
【図14】タイル単位の処理時の他の符号データ例を示す説明図である。
【図15】ラスタライン単位の処理時の符号データ例を示す説明図である。
【図16】ラスタライン単位の処理時の他の符号データ例を示す説明図である。
【符号の説明】
121 像域分離手段
122 処理内容切換え手段
131 白黒画像領域
132 白黒画像以外の画像領域
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to various image processing apparatuses such as a digital copying machine (including a multifunction peripheral = MFP), a printer, a scanner, and a personal computer, an image processing program, and a storage medium.
[0002]
[Prior art]
Generally, there are various types of document image data handled by this type of image processing apparatus. For example, most documents are black and white images, but there are many documents in which images other than black and white images such as color images are partially laid out, or vice versa.
[0003]
As a high-definition image compression / decompression technology capable of restoring a high-quality image with a high compression ratio, an image compression / encoding technology based on the JPEG2000 algorithm has attracted attention.
[0004]
[Patent Document 1]
JP 2001-297303 A
[Problems to be solved by the invention]
If the JPEG2000 algorithm is used, several high-efficiency encoding processes are included, and high-efficiency, high-compression-rate compression encoding is basically possible. Depending on the characteristics, it is not always effective, and it may be a wasteful process, rather deteriorating the coding efficiency and hindering high-speed processing.
[0006]
That is, considering the characteristics of the compression encoding by the JPEG2000 algorithm, one of them is bit plane encoding for increasing the compression ratio, and this is a case of a monochrome image which can be treated essentially as binary data. However, since it is represented by multi-valued data, it is necessary to encode a plurality of bit planes as usual, and as a result, it has the same meaning as performing useless encoding, and the encoding efficiency is reduced. There is a problem that the processing speed is slow.
[0007]
An object of the present invention is to use image compression encoding technology based on the JPEG2000 algorithm in compressing and encoding various types of document image data and the like, and to basically improve image data having various characteristics by one encoding means. It is to be able to process efficiently and to avoid inconvenience of the JPEG2000 algorithm at that time.
[0008]
[Means for Solving the Problems]
The image processing apparatus according to the first aspect of the present invention includes a compression encoding unit that compresses and encodes document image data according to a JPEG2000 algorithm, and an image area including a monochrome image area and a non-monochrome image area mixed in the document image data. Processing content switching means for switching the processing content of the compression encoding means based on the separation signal.
[0009]
Therefore, by using a compression encoding unit that basically performs compression encoding according to the JPEG2000 algorithm, a single encoding unit can cope with a compression encoding process between a black-and-white image region and a non-monochrome image region, and the configuration is simple. In addition to the high efficiency, by switching the processing content of the compression encoding means based on the image area separation signal between the black and white image area mixed with the document image data and the non-black and white image area, the characteristics of the JPEG2000 algorithm can be further utilized. This makes it possible to avoid the inconvenience of the leverage JPEG2000 algorithm.
[0010]
According to a second aspect of the present invention, there is provided the image processing apparatus according to the first aspect, wherein a black and white image region and a non-black and white image region mixed in the document image data are separated to output an image region separation signal. Means.
[0011]
Therefore, when the applicable model is, for example, a personal computer or the like, the image area separation signal may be configured to be input from the outside, but when the applicable model is, for example, an image forming apparatus such as a digital copying machine, Providing the image area separating means itself enables proper image compression encoding processing by itself.
[0012]
According to a third aspect of the present invention, in the image processing apparatus according to the first or second aspect, the compression encoding unit includes at least a DC level conversion, a color space conversion, a two-dimensional wavelet conversion, a quantization, and an entropy coding. The document image data is compression-encoded by a procedure called processing, and the processing content switching means sets a normal encoding mode to an area separated as an image area other than black and white by an image area separation signal, and sets the DC level. All the encoding processes from the conversion process are performed, and the region separated as a black and white image region by the image area separation signal is set to the black and white encoding mode, and a value obtained by adding 1 to a positive value after DC level conversion is used. Further, the processing content in the compression encoding means is switched so that the wavelet division level is set to 0 and the entropy encoding processing is performed.
[0013]
Therefore, considering the characteristics of the compression encoding by the JPEG2000 algorithm, one of them is bit plane encoding for increasing the compression ratio, and this is a case of a monochrome image which can be treated essentially as binary data. However, since it is represented by multi-valued data, it is necessary to encode a plurality of bit planes as usual, and as a result, it has the same meaning as performing useless encoding, and the encoding efficiency is reduced. Paying attention to the disadvantage that the processing speed is poor, the specific content of the invention according to claim 1 or 2 is that, in the case of a black and white image, the DC level conversion processing result is modified. By allowing the data to be treated substantially in the same manner as binary data and performing only entropy coding processing without performing two-dimensional wavelet transform processing or quantization processing, unnecessary processing is omitted. Bets can be, high-speed processing, it is possible to improve the coding efficiency. That is, when it is determined that the image is a monochrome image, the value is set to 0: white (or black), 255: black (for an 8-bit image or white), and after DC level conversion, the values are -128 and 127. become. Adding 1 to this positive value results in -128 and 128. When this value is subjected to the following three coding passes (three passes to the -bit plane: JPEG2000 standard) without performing the wavelet transform at the wavelet division level 0, both +128 and -128 are obtained. , Only the 7th bit has a value (that is, the 7th bit is 1 and the other 0th to 6th bits and the 8th bit and above are 0). When this is coded, only the seventh bit is to be coded, so that in the case of a black-and-white mixed image, the coding efficiency is increased.
[0014]
According to a fourth aspect of the present invention, in the image processing apparatus according to any one of the first to third aspects, the processing content switching means switches between a normal encoding mode and a monochrome encoding mode for the entire document image data. The processing contents are switched so as to apply either one.
[0015]
Therefore, by switching between the normal encoding mode and the black-and-white encoding mode in units of the entire document image data, the inventions of claims 1 to 3 can be most simply realized.
[0016]
According to a fifth aspect of the present invention, in the image processing apparatus according to the fourth aspect, the compression encoding means includes a normal encoding mode and a black-and-white encoding mode applied to a main header area of the encoded data. Describe any one of the encoding mode information.
[0017]
Accordingly, since the encoding mode information is described in the main header area of the compression-encoded code data, decoding of the code data can be performed without error by referring to the coding mode information.
[0018]
According to a sixth aspect of the present invention, in the image processing apparatus according to any one of the first to third aspects, the processing content switching unit is configured to divide the document image data into a plurality of pieces and encode the document image data in a plurality of small area units. The processing content is dynamically switched between a normal encoding mode and a black-and-white encoding mode.
[0019]
Therefore, switching between the normal encoding mode and the black-and-white encoding mode is performed by dividing a document image data into a plurality of small areas and encoding them, for example, a tile as in the seventh aspect of the present invention, and a eighth aspect of the present invention. By performing the operation in units of raster lines as in the invention of the first aspect, the inventions of the first to third aspects can be realized finely according to the state of the document image data.
[0020]
According to a ninth aspect of the present invention, in the image processing apparatus according to the seventh aspect, the compression encoding means includes a normal encoding mode applied to each tile in a main header area of the encoded data, and a black and white code. Any coding mode information with the coding mode is described.
[0021]
Therefore, since the encoding mode information is described for each tile in the main header area of the encoded data, the decoding can be performed without error by referring to the encoding mode information when decoding the encoded data. .
[0022]
According to a tenth aspect of the present invention, in the image processing apparatus according to the eighth aspect, the compression encoding unit includes a normal encoding mode and a black-and-white encoding mode applied to a main header area of the encoded data. The coding mode information on the switching raster line is described.
[0023]
Therefore, since the encoding mode information on the switching raster line is described in the main header area of the encoded data, the decoding can be performed without error by referring to this encoding mode information when decoding the encoded data. .
[0024]
According to an eleventh aspect of the present invention, in the image processing apparatus according to the seventh aspect, the compression encoding unit includes a normal encoding mode and a black-and-white encoding mode applied to the tile of the encoded data of each tile. Is described.
[0025]
Accordingly, since the coding mode information applied to each tile is described in the code data of each compression-coded tile, decoding can be performed without error by referring to the coding mode information when decoding the code data. .
[0026]
According to a twelfth aspect of the present invention, in the image processing apparatus according to the seventh aspect, the compression encoding means relates to a raster line for switching between a normal encoding mode and a black and white encoding mode applied to the encoded data. Describe the encoding mode information.
[0027]
Accordingly, the coding mode information on the switching raster line is described in the code data of each tile that has been compressed and coded, so that decoding of the code data can be performed without error by referring to the coding mode information.
[0028]
An image processing program according to claim 13 is installed in a computer, and the computer has a compression encoding function of compressing and encoding document image data according to a JPEG2000 algorithm, and a black-and-white image area mixed in the document image data. And a processing content switching function of switching the processing content by the compression encoding function based on an image area separation signal from an image area other than a monochrome image.
[0029]
Therefore, by using a compression coding function for performing compression coding in accordance with the JPEG2000 algorithm, a single coding unit can be used for the compression coding processing of the black-and-white image area and the image area other than the black-and-white image. In addition, the JPEG2000 algorithm is more efficient by switching the processing contents by this compression encoding function based on the image area separation signal between the black and white image area mixed with the document image data and the image area other than the black and white image. It is possible to avoid the disadvantage of the JPEG2000 algorithm by utilizing
[0030]
A computer-readable storage medium according to a fourteenth aspect stores the image processing program according to the thirteenth aspect.
[0031]
Therefore, an effect similar to that of the thirteenth aspect is obtained.
[0032]
BEST MODE FOR CARRYING OUT THE INVENTION
An embodiment of the present invention will be described with reference to the drawings.
[0033]
[Outline of JPEG2000]
The present embodiment utilizes the JPEG2000 algorithm. First, JPEG2000 will be briefly described.
[0034]
FIG. 1 is a functional block diagram for explaining the basics of the JPEG2000 algorithm. As shown in FIG. 1, the JPEG2000 algorithm includes a color space transform / inverse transform unit 101, a two-dimensional wavelet transform / inverse transform unit 102, a quantization / inverse quantize unit 103, an entropy encoding / decode unit 104, a tag process It is configured by the unit 105. Hereinafter, each unit will be described.
[0035]
The color space transform / inverse transform unit 101 and the two-dimensional wavelet transform / inverse transform unit 102 will be described with reference to FIGS.
[0036]
FIG. 2 is a schematic diagram illustrating an example of each of the divided components of an original image that is a color image. In a color image, as shown in FIG. 2, components R, G, and B (111) of the original image are generally separated by, for example, an RGB primary color system. Then, the components R, G, and B of the original image are further divided by the tiles 112, which are rectangular regions. Each tile 112, for example, R00, R01, ..., R15 / G00, G01, ..., G15 / B00, B01, ..., B15 constitutes a basic unit when executing the compression / decompression process. Therefore, the compression / expansion operation is performed independently for each of the components R, G, B (111) and for each tile 112.
[0037]
Here, at the time of encoding the image data, the data of each tile 112 is input to the color space conversion / inverse conversion unit 101 shown in FIG. At 102, a two-dimensional wavelet transform (forward transform) is applied and spatially divided into frequency bands.
[0038]
FIG. 3 is a schematic diagram showing subbands at each decomposition level when the number of decomposition levels is three. The two-dimensional wavelet transform / inverse transform unit 102 performs a two-dimensional wavelet transform on the tile original image (0LL) (decomposition level 0) obtained by dividing the original image into tiles, Separate the bands (1LL, 1HL, 1LH, 1HH). Then, the two-dimensional wavelet transform / inverse transform unit 102 continuously performs a two-dimensional wavelet transform on the low-frequency component 1LL in this layer, and outputs the sub-bands (2LL, 2HL, 2LH, 2HH) shown in the decomposition level 2. Is separated. Similarly, the two-dimensional wavelet transform / inverse transformer 102 sequentially performs the two-dimensional wavelet transform on the low-frequency component 2LL, and separates the sub-bands (3LL, 3HL, 3LH, 3HH) shown in the decomposition level 3. I do. In FIG. 3, subbands to be encoded at each decomposition level are shown in gray. For example, if the number of decomposition levels is 3, the gray subbands (3HL, 3LH, 3HH, 2HL, 2LH, 2HH, 1HL, 1LH, 1HH) are to be encoded, and the 3LL subband is not encoded. .
[0039]
Next, in the quantization / inverse quantization unit 103, after bits to be encoded are determined in the specified encoding order, a context is generated from bits around the target bits.
[0040]
FIG. 4 is a schematic diagram illustrating a precinct. The wavelet coefficients after the quantization process are divided into non-overlapping rectangles called “precincts” for each subband. This was introduced to make efficient use of memory in the implementation. As shown in FIG. 4, one precinct is composed of three rectangular regions that spatially match. Furthermore, each precinct is divided into non-overlapping rectangular “code blocks”. This is a basic unit when performing entropy coding.
[0041]
FIG. 5 is a schematic diagram showing an outline of a process of decomposing the values of the two-dimensional wavelet coefficients after the two-dimensional wavelet transform into “bit planes” and ranking the “bit planes” for each pixel or code block. . The coefficient value after the wavelet transform can be quantized and coded as it is. However, in JPEG2000, in order to increase the coding efficiency, the coefficient value is decomposed into "bit planes" and " A "bit plane" can be ranked. FIG. 5 briefly shows the procedure. In this example, the original image (32 × 32 pixels) is divided into four 16 × 16 pixel tiles, and the size of the precinct at the decomposition level 1 and the size of the code block are each 8 × 8 pixels. And 4 × 4 pixels. The precinct and code block numbers are assigned in raster order. The pixel expansion outside the tile boundary is performed by using a mirroring method, performing a wavelet transform using a reversible (5, 3) filter, and obtaining a wavelet coefficient value of decomposition level 1.
[0042]
FIG. 5 also shows a conceptual schematic diagram of a representative “layer” for tile 0 / precinct 3 / code block 3. The layer structure is easy to understand when the wavelet coefficient value is viewed from the horizontal direction (bit plane direction). One layer is composed of an arbitrary number of bit planes. In this example, layers 0, 1, 2, and 3 are respectively composed of three bit planes of 1, 3, and 1. Then, a layer including a bit plane closer to the LSB is subject to quantization first, and conversely, a layer closer to the MSB remains unquantized to the end. A method of discarding from a layer close to the LSB is called truncation, and it is possible to finely control the quantization rate.
[0043]
Next, the entropy encoding / decoding unit 104 will be described with reference to FIG. FIG. 6 is a schematic diagram illustrating a code stream of encoded image data. The entropy encoding / decoding unit 104 (see FIG. 1) encodes each component RGB tile 112 by probability estimation from the context and the target bit. In this way, the encoding process is performed on all the components RGB of the original image in tile 112 units.
[0044]
Next, the tag processing unit 105 will be described. The tag processing unit 105 combines all encoded data from the entropy encoding / decoding unit 104 into one code stream and performs a process of adding a tag to the code stream. FIG. 6 briefly shows the structure of the code stream. Tag information called a header is added to the head of such a code stream and the head of a partial tile constituting each tile 112, and thereafter, encoded data of each tile 112 follows. Then, a tag is placed again at the end of the code stream.
[0045]
On the other hand, at the time of decoding, image data is generated from the code stream of each tile 112 of each component RGB, contrary to the encoding. Such a process will be briefly described with reference to FIG. The tag processing unit 105 interprets the tag information added to the code stream input from the outside, decomposes the code stream into a code stream of each tile 112 of each component RGB, and a code stream of each tile 112 of each component RGB. A decryption process is performed for each. At this time, the positions of the bits to be decoded are determined in the order based on the tag information in the code stream, and the quantization / dequantization unit 103 sets the peripheral bits of the target bit positions (decoding has already been performed. Is generated from the sequence of Then, the entropy coding / decoding section 104 performs decoding by probability estimation from the context and the code stream to generate a target bit, and writes it to the position of the target bit. Since the data decoded in this manner is spatially divided for each frequency band, the two-dimensional wavelet transform / inverse transform unit 102 performs an inverse two-dimensional wavelet transform on the data to obtain each component in the image data. Each tile 112 in RGB is restored. The restored data is converted into the original color system data by the color space conversion / inversion unit 101.
[0046]
Next, an example of a JPEG2000 code format will be described. FIG. 7 is a schematic diagram showing a code format of JPEG2000. The code format starts with an SOC (Start of Codestream) marker indicating the start of code data, followed by a main header describing coding parameters and quantization parameters, and further followed by actual code data. It is. Actual code data starts with an SOT (Start of Tile-part) marker, and is composed of a tile header, a SOD (Start of Data) marker, and tile data (code). After the code data corresponding to the entire image, an EOC (End of Codestream) marker indicating the end of the code is added.
[0047]
[Overall configuration of digital full-color copying machine]
Next, a configuration example of a digital full-color copying machine that is an image processing apparatus according to the present embodiment will be described with reference to FIG.
[0048]
The digital color copying machine 1 also functions as an MFP = multifunction machine having a data storage function, and includes a printer 2 which is a color printer functioning as a printer engine, and an image reading device installed on the upper part of the printer 2. And a scanner 3 which is a color image scanner.
[0049]
The printer 2 forms an image by an electrophotographic method in an image forming unit 4 based on image data of a document optically read by a scanner 3 and image data transmitted from an external device, and sends the image to a paper feeding unit. 5 is transferred to a sheet P which is a recording medium conveyed through a sheet conveying path 7 by a sheet conveying section 6, and the sheet P on which an image is transferred is conveyed to a fixing section 9 by a conveying belt 8, and the transferred image of the sheet P is transferred. Is heated and pressurized by a fixing unit 9 and is discharged and discharged to a discharge tray 10.
[0050]
The image forming unit 4 includes a charging unit 12 that uniformly charges the surface of the photoconductor 11 around the rotating drum-shaped photoconductor 11, and an image for each color obtained by exposing and scanning the uniformly charged surface of the photoconductor 11. Exposure unit 13 for forming an electrostatic latent image based on data on photoconductor 11, electrostatic latent image for each color including cyan (C), magenta (M), yellow (Y), and black (K) toners A revolver type color developing unit 14 for forming a visible toner image by adhering toner corresponding to the image, and an intermediate for sequentially transferring toner images of respective colors onto an intermediate transfer belt 15 supported by a plurality of rollers. The transfer unit 16 is formed by arranging a photoconductor cleaning unit 17 for scraping off toner remaining on the photoconductor 11 without being transferred onto the intermediate transfer belt 15, a charge removing unit 18 for removing charges on the photoconductor 11, and the like. Have Further, a transfer unit 19 for collectively transferring the toner images on the intermediate transfer belt 15 onto the sheet P and a belt cleaning unit 20 for scraping off the toner remaining on the intermediate transfer belt 15 without being collectively transferred onto the sheet P are provided. Is formed.
[0051]
Next, the scanner 3 will be described. The scanner 3 includes a scanner body 21 and an ADF (automatic document feeder) 22 which is a document feeder provided on the upper part of the scanner body 21. On the upper surface of the housing 23 of the scanner body 21, a placed original glass 24 on which an original is placed when reading an original image in the original fixed mode, and a transport used when reading the original image in the original transport mode. A document glass 25 is provided. Here, the document fixing mode is an operation mode for reading an image of a document placed on the placed document glass 24, and the document transport mode is for automatically feeding a document by the ADF 22 and automatically feeding the document. This is an operation mode in which an image of a paper document is read when the paper document passes over the glass sheet 25 for conveyance.
[0052]
Further, an illumination lamp (high-intensity Xe lamp) 26 and a mirror 27 as exposure means for irradiating the original with light are provided at a position inside the housing 23 and facing the placed original glass 24 from below. One traveling body 28 is disposed movably in the sub-scanning direction along the placed original glass 24. A second traveling body 31 including two mirrors 29 and 30 is arranged on the reflected light path of the first traveling body 28 so as to be movable in the sub-scanning direction along the placed document glass 24. An SBU (Sensor Board Unit) 34 mounted with a CCD (Charge Coupled Device) 33 which is a color line sensor via a lens 32 is located in the reflected light path of the two-wheeled vehicle 31. Note that the CCD 33 functions as a photoelectric conversion element.
[0053]
A stepping motor 35 is connected to the first traveling body 28 and the second traveling body 31 as sub-scanning means by pulleys, wires, or the like (neither is shown). The body 31 is movable in the same sub-scanning direction from the left side to the right side in FIG. 7 at a speed ratio of 2: 1. Note that the digital color copying machine 1 of the present embodiment has a scaling function, and at the time of enlarging / reducing copying, the speed of the stepping motor 35 is controlled in accordance with the scaling factor so that the first step is performed. By changing the moving speed of the second traveling bodies 28 and 31 with respect to the original, the magnification change processing in the sub-scanning direction is mechanically performed. The scaling in the main scanning direction is performed by an electrical scaling process described later.
[0054]
Such a digital full-color copying machine 1 is controlled by a control system including a plurality of microcomputers. FIG. 9 is a schematic block diagram showing an electrical connection of a control system related to image processing among these control systems. In this control system, a CPU 41, a ROM 42, a RAM 43, an operation panel 44, and the like are connected by a bus 45. The CPU 41 performs various calculations and centrally controls processing such as image processing. The ROM 42 stores various programs and fixed data related to the processing executed by the CPU 41. The RAM 43 is a work area for the CPU 41. The IPU (Image Processing Unit) 46 includes hardware related to various types of image processing. The ROM 42 serving as a storage medium includes a non-volatile memory such as an EEPROM or a flash memory, and a program stored in the ROM 42 is controlled by the CPU 41 through an external device (not shown) through an I / O port 47. It can be rewritten to a program downloaded from. That is, in the present embodiment, programs for realizing various functions are stored in the ROM 42, and the ROM 42 functions as a storage medium storing the programs.
[0055]
Further, the digital copying machine 1 of the present embodiment includes each functional block of the JPEG2000 algorithm described with reference to FIG. 1, and performs compression encoding of image data by the above-described JPEG2000 algorithm. That is, the functions of the compression encoding unit and the decoding unit as shown in FIG. 1 are executed by the processing performed by the hardware by the IPU 46, but are executed by the processing performed by the CPU 41 based on the program stored in the ROM 42. May be. As a result, digital image data of a plurality of images read by the scanner 3 and subjected to various image processing such as white shading correction by the IPU 46 are compression-encoded by the JPEG2000 algorithm, and the code of each image is basically converted. Create a stream. That is, basically, an image is divided into one or a plurality of rectangular areas (tiles), and pixel values are discrete wavelet-transformed for each of the rectangular areas and compression-coded hierarchically.
[0056]
[Image compression encoding process]
When the compression encoding means based on the JPEG2000 algorithm shown in FIG. 1 is rewritten, it can be shown as in FIG. That is, the DC level shift unit 101a, the color conversion unit 101b, the wavelet transform unit 102a, the quantization unit 103a, the coefficient modeling unit 104a, the arithmetic coding unit 104b, and the code order control unit 105a are arranged in the processing order, so that the compression coding means is arranged. 106 is configured. Here, the DC level shift unit 101a and the color conversion unit 101b belong to the color space conversion / inverse conversion unit 101, and the DC level shift unit 101a determines that the input image signal is a positive number such as an RGB signal value. In some cases, a predetermined conversion formula is used to perform a level shift process of subtracting の of the signal dynamic range from each signal value, and the color conversion unit 101b converts the RGB image into a luminance / color difference YCbCr image. A process for increasing the compression efficiency of the color image is performed. The wavelet transform unit 102a belongs to the two-dimensional wavelet transform / inverse transform unit 102, and performs the above-described conversion processing to wavelet coefficients. The quantization unit 103a belongs to the quantization / dequantization unit 103, and performs processing for reducing the dynamic range of wavelet coefficients in order to perform efficient compression. As an example of this quantization processing, there is a post-quantization method for performing quantization by truncating lower bit planes of a completed code sequence by utilizing the fact that entropy coding described later is a bit plane.
[0057]
The coefficient modeling unit 104a and the arithmetic coding unit 104b belong to the entropy coding / decoding unit 104 that performs block-based bit plane coding. Among them, the coefficient modeling unit 104a creates a bit model for binary arithmetic coding from the multivalued wavelet coefficients to be coded, and the coding method is determined by this processing. As a coding method in the arithmetic coding unit 104b, a method called MQ-Coder, which is a new binary image coding method, is used. The code order control unit 105a is included in the tag processing unit 105.
[0058]
In the present embodiment, in addition to the compression encoding means 106 according to the JPEG2000 algorithm, in the present embodiment, black-and-white image regions and image regions other than the black-and-white image region included in the document image data to be processed are mixed. And an image area separation unit 121 as an image area separation unit that outputs an image area separation signal by separating the image signal and a process in the compression encoding unit 106 according to the determination signal output from the image characteristic determination unit 121. Further, a selector 122 is provided as processing content switching means for making the processing content of the compression encoding different.
[0059]
The image area separation unit 121 separates a black-and-white image area and an image area other than a black-and-white image in order to perform optimal image processing that matches the characteristics of the image. A method such as that disclosed in Patent Document 1 in which a background color is specified for the target document image data and a region identification result of the document image is obtained bottom-up using the background color may be used, and details thereof are omitted. I do. The separation of the image area in the case of Patent Document 1 is separation of an image area other than a black-and-white image from a black-and-white / black-and-white image area. For the identification, the lower limit level and the upper limit level of the black and white image recognition are appropriately set, and if they belong to these level ranges, the black and white image region may be recognized and the black and white image region may be excluded.
[0060]
The selector 122 selects the processing of the document image data to be processed in the compression coding means 106 according to the image area separation signal and makes the processing content of the compression coding different, and in particular, JPEG2000 In the algorithm, the processing of the DC level conversion unit 101a, the processing of the color conversion unit 101b, the processing of the two-dimensional wavelet conversion unit 102a, the processing of the quantization unit 103a, and the processing of the arithmetic coding unit 104b are discarded according to the image area separation signal. As a selection target, the processing content of the compression encoding is made different depending on the characteristics of the image data.
[0061]
For example, for the area separated as an image area other than black and white by the image area separation signal, the normal coding mode is set, all the processing by the compression coding unit 106 is enabled, and all the coding processing from the DC level conversion processing is performed. Let On the other hand, the area separated as a black-and-white image area by the image area separation signal is set to the black-and-white encoding mode, and a value obtained by adding 1 to a positive value to the value after DC level conversion by the DC level shift unit 101a is used. Further, the entropy encoding process is performed with the wavelet division level set to 0. That is, the processing of the color conversion unit 101b, the processing of the two-dimensional wavelet conversion unit 102a, the processing of the quantization unit 103a, and the processing of the arithmetic coding unit 104b are omitted.
[0062]
More specifically, when it is determined that the image is a black-and-white image, the value is set to 0: white (or black), 255: black (for an 8-bit image or white), and after the DC level conversion, the value becomes −. 128 and 127. Adding 1 to this positive value results in -128 and 128 (= 10000000). When this value is subjected to the following three coding passes (three passes to the -bit plane: JPEG2000 standard) without performing the wavelet transform at the wavelet division level 0, both +128 and -128 are obtained. , Only the 7th bit has a value (that is, the 7th bit is 1 and the other 0th to 6th bits and the 8th bit and above are 0). When this is coded, only the seventh bit is to be coded, so that in the case of a black-and-white mixed image, the coding efficiency is increased. That is, it can be handled similarly to binary data. Further, bit plane encoding by the arithmetic encoding unit 104b after encoding of such bit data is not performed (not necessary). At this time, since the conversion process in the wavelet conversion unit 102a is also omitted, the number of wavelet divisions is set to 0, and information without quantization is described in a header or the like as described later. By the way, such an operation results in a value exceeding the value that the pixel can take at the time of decoding (128 × 2 = 10000000 = 256), but the clipping process is performed, and the maximum value that the pixel can take becomes the original value. Is restored.
[0063]
The functions of the image area separation unit 121 and the selector 122 may also be executed by processing performed by the CPU 41 based on a program stored in the ROM 42.
[0064]
In general, when considering the characteristics of the compression encoding by the JPEG2000 algorithm, one of them is bit plane encoding by an arithmetic encoding unit for increasing the compression ratio. Even in the case of an image, since it is represented by multi-valued data, it is necessary to encode a plurality of bit planes as usual, and as a result, it has the same meaning as performing unnecessary encoding. However, there is a problem that the coding efficiency is low and the processing speed is low. In this regard, according to the present embodiment, in the case of a black-and-white image, the result of the DC level conversion processing is modified so that it can be treated substantially in the same way as binary data, and the two-dimensional wavelet conversion processing and the quantization processing are performed. By performing only the entropy coding process without performing the pit plane coding, the unnecessary process can be omitted, and the processing speed can be increased and the coding efficiency can be improved.
[0065]
[Specific processing example]
Now, several examples of processing when document image data of a document 133 in which a black-and-white image area 131 and an image area 132 other than a black-and-white image are mixed as schematically shown in FIG. explain.
[0066]
First, as a first example, in the simplest case, for example, black-and-white encoding is performed on the entire document image data according to the ratio of the black-and-white image area 131 and the image area 132 other than the black-and-white image in the document image data. The selector 122 can be configured to switch so as to apply either the mode or the normal encoding mode. In this case, the compression encoding processing method may be a tile method in which the image is divided into a plurality of tiles and encoded in tile units, or a raster method in which the image is divided into raster lines and encoded in raster line units. Is also good.
[0067]
In this case, as shown in FIG. 12, the compression encoding means 106 determines whether the mode applied to the main header area of the encoded data is the normal encoding mode or the black-and-white encoding mode. If the coding mode information (including the number of wavelet divisions in the black and white coding mode being 0 and no quantization) is described, by referring to the coding mode information at the time of decoding the code data, no mistake is made. Decryption becomes possible. The example shown in FIG. 12 is a tile encoding method (see FIG. 11B), and shows an example in which the entire document image data is black-and-white coded by applying the black-and-white coding mode.
[0068]
Next, as a second more practical example, the processing mode may be dynamically switched in a unit of a small area = a unit of a tile. For example, the document image data as shown in FIG. 11A is divided into a plurality of tiles A1, A2,..., F3 and F4 as shown in FIG. It is also possible to switch between the processing contents for the black and white coding mode and the normal coding mode.
[0069]
FIG. 13 shows an example of a code string that has been compression-encoded by the compression-encoding means 106 according to this method. As shown in FIG. 13, the mode applied to the main header area is a normal encoding mode or a monochrome encoding mode. If the encoding mode information is described for each tile, decoding can be performed without error by referring to the encoding mode information when decoding the code data.
[0070]
However, not only the method described in the main header area but also the mode individually applied to the code data (tile header portion) of each compression-coded tile as shown in FIG. The coding mode information indicating which of the coding modes is used may be described. According to this method, decoding of the code data can be performed without error by referring to the coding mode information.
[0071]
As a third more practical example, the processing mode may be dynamically switched in a unit of a certain small area = a unit of a raster line. For example, the document image data as shown in FIG. 11A is divided into a plurality of raster lines y0, y1,... As shown in FIG. May be switched between for black and white encoding mode and for normal encoding mode.
[0072]
FIG. 15 shows an example of a code string that has been compression-encoded by the compression-encoding means 106 according to this method. As shown in the drawing, the mode applied to the main header area is a normal encoding mode or a monochrome encoding mode. If the encoding mode information is described by a raster line whose mode changes, decoding can be performed without error by referring to the encoding mode information when decoding the code data. . In the illustrated example, the processing in the monochrome encoding mode is performed from raster line 0, the normal encoding mode is switched on the raster line y1, the monochrome encoding mode is switched on the raster line y3, and so on.
[0073]
However, not limited to the method described in the main header area, as shown in FIG. 16, a raster in which the mode individually applied to the compression-coded code data is switched between the normal coding mode and the black-and-white coding mode. Information about lines may be described as encoding mode information. According to this method, decoding of the code data can be performed without error by referring to the coding mode information.
[0074]
Further, in the present embodiment, the digital copying machine has been described as including the image area separating unit 121, but a configuration in which the digital copying machine does not have them and can be obtained as an external signal may be used. That is, if the applicable model as the image processing apparatus is, for example, a personal computer, the image area separation signal may be configured to be input from the outside, but the applicable model as the image processing apparatus is, for example, the present embodiment. In the case of an image forming apparatus such as a digital copying machine as in the embodiment, since the image forming apparatus itself includes the image area separating unit 121, appropriate image compression encoding processing can be performed by itself.
[0075]
【The invention's effect】
According to the image processing apparatus of the first aspect of the present invention, the compression encoding means for compressing and encoding the image in accordance with the JPEG2000 algorithm is basically used. In addition to being simple and efficient with a single encoding means, the processing content of this compression encoding means can be separated into black and white image areas mixed with document image data and non-black and white image areas. Since the switching is performed based on the signal, it is possible to avoid the inconvenience of the JPEG2000 algorithm by utilizing the features of the JPEG2000 algorithm.
[0076]
According to the second aspect of the present invention, in the image processing apparatus according to the first aspect, when the applicable model is, for example, a personal computer, the image processing apparatus may be configured to receive the image area separation signal from outside. In the case where the applicable model is an image forming apparatus such as a digital copying machine, for example, the image forming apparatus itself includes the image area separating means, so that the apparatus itself can perform an appropriate image compression / encoding process by itself.
[0077]
According to the third aspect of the present invention, in the image processing apparatus according to the first or second aspect, when the features of the compression encoding by the JPEG2000 algorithm are considered, one of them is bit plane encoding for increasing the compression ratio. Yes, even in the case of a black-and-white image that can be treated as equivalent to binary data, it is necessary to perform encoding of a plurality of bit planes as usual since it is represented by multi-valued data. 3. It has the same meaning as performing useless encoding, and has a problem that the encoding efficiency is low and the processing speed is reduced. In the case of a black-and-white image, the result of the DC level conversion processing is modified so that it can be treated substantially in the same way as binary data, without performing two-dimensional wavelet conversion processing and quantization processing. Since so as to perform Ntoropi encoding process only, it is possible to omit wasteful processing, faster processing, thereby improving the coding efficiency. That is, when it is determined that the image is a monochrome image, the value is set to 0: white (or black), 255: black (for an 8-bit image or white), and after the DC level conversion, the values are -128 and 127. When 1 is added to this positive value, it becomes -128 and 128. Therefore, the wavelet at the wavelet division level 0, that is, the next three coding passes (- When the bit plane is subjected to three passes: JPEG2000 standard, both +128 and -128 have a value only in the seventh bit (that is, the seventh bit is 1 and the other 0 to 6th and 8th bits). The above is 0), and when this is coded, only the seventh bit is to be coded. Therefore, in the case of a black and white mixed image, the coding efficiency can be improved.
[0078]
According to the fourth aspect of the present invention, in the image processing apparatus according to any one of the first to third aspects, switching between the normal encoding mode and the black-and-white encoding mode is performed in units of the entire document image data. Thus, the inventions of claims 1 to 3 can be most easily realized.
[0079]
According to the fifth aspect of the present invention, in the image processing apparatus according to the fourth aspect, the encoding mode information is described in the main header area of the compression-encoded code data. By referring to the encoding mode information, decoding can be performed without error.
[0080]
According to a sixth aspect of the present invention, in the image processing apparatus according to any one of the first to third aspects, the switching between the normal encoding mode and the monochrome encoding mode is performed by dividing the document image data into a plurality of pieces. Since a certain small area to be converted, for example, a tile as in the invention of claim 7 and a raster line as in the invention of claim 8 are performed, the invention of claims 1 to 3 is performed. It can be realized finely according to the state of the document image data.
[0081]
According to the ninth aspect of the present invention, in the image processing apparatus according to the seventh aspect, the encoding mode information is described for each tile in the main header area of the compression-encoded code data. Can be decoded without error by referring to the encoding mode information.
[0082]
According to the tenth aspect of the present invention, in the image processing apparatus according to the eighth aspect, the encoding mode information relating to the switching raster line is described in the main header area of the compression-encoded code data. Can be decoded without error by referring to the encoding mode information.
[0083]
According to the eleventh aspect of the present invention, in the image processing apparatus according to the seventh aspect, the coding mode information applied to the tile is described in the code data of each compression-coded tile. Can be decoded without error by referring to the encoding mode information.
[0084]
According to the twelfth aspect of the present invention, in the image processing apparatus according to the seventh aspect, the encoding mode information on the switching raster line is described in the code data of each compressed and encoded tile. At the time of decoding, by referring to the encoding mode information, decoding can be performed without error.
[0085]
According to the image processing program of the present invention, since the compression coding function for performing compression coding in accordance with the JPEG2000 algorithm is basically used, the compression coding of the black and white image area and the image area other than the black and white image is performed. The encoding process can be handled by a single encoding means, the configuration is simple and efficient, and the processing contents of this compression encoding function can be combined between black and white image areas mixed in the document image data and image areas other than the black and white image. Since the switching is performed based on the image area separation signal, the inconvenience of the JPEG2000 algorithm can be avoided by utilizing the features of the JPEG2000 algorithm.
[0086]
According to the computer-readable storage medium of the fourteenth aspect, the same effects as those of the thirteenth aspect can be obtained.
[Brief description of the drawings]
FIG. 1 is a functional block diagram of a system for realizing a basic algorithm of the JPEG2000 system which is a premise of an embodiment of the present invention.
FIG. 2 is an explanatory diagram showing a divided rectangular area of each component of an original image.
FIG. 3 is an explanatory diagram showing subbands at each decomposition level when the number of decomposition levels is three.
FIG. 4 is an explanatory diagram showing a precinct.
FIG. 5 is an explanatory diagram showing an example of a procedure for ranking bit planes. It is.
FIG. 6 is a schematic diagram illustrating a code stream of encoded image data.
FIG. 7 is a schematic diagram showing a code format of JPEG2000.
FIG. 8 is a schematic configuration diagram illustrating a digital full-color copying machine as an image processing apparatus according to an embodiment of the present invention.
FIG. 9 is a schematic block diagram showing the control system.
FIG. 10 is a block diagram illustrating a compression encoding processing portion serving as a characteristic portion.
FIG. 11 is an explanatory diagram illustrating an example of document image data to be processed;
FIG. 12 is an explanatory diagram showing an example of code data at the time of processing in page units.
FIG. 13 is an explanatory diagram showing an example of code data at the time of processing in units of tiles.
FIG. 14 is an explanatory diagram showing another example of code data at the time of processing in units of tiles.
FIG. 15 is an explanatory diagram showing an example of code data at the time of processing in units of raster lines.
FIG. 16 is an explanatory diagram showing another example of code data at the time of processing in units of raster lines.
[Explanation of symbols]
121 Image area separating means 122 Processing content switching means 131 Black and white image area 132 Image area other than black and white image

Claims (14)

文書画像データをJPEG2000アルゴリズムに従い圧縮符号化する圧縮符号化手段と、
前記文書画像データ中に混在する白黒画像領域と白黒以外の画像領域との像域分離信号に基づき前記圧縮符号化手段による処理内容を切換える処理内容切換え手段と、
を備える画像処理装置。
Compression encoding means for compressing and encoding the document image data according to the JPEG2000 algorithm;
Processing content switching means for switching the processing content by the compression encoding means based on an image area separation signal of a monochrome image area and a non-black and white image area mixed in the document image data,
An image processing apparatus comprising:
前記文書画像データ中に混在する白黒画像領域と白黒以外の画像領域とを分離して像域分離信号を出力する像域分離手段を備える請求項1記載の画像処理装置。2. The image processing apparatus according to claim 1, further comprising an image area separating unit that separates a black and white image area and a non-black and white image area mixed in the document image data and outputs an image area separation signal. 前記圧縮符号化手段は、少なくともDCレベル変換、色空間変換処理、2次元ウェーブレット変換処理、量子化処理及びエントロピー符号化処理という手順で文書画像データを圧縮符号化するものであり、
前記処理内容切換え手段は、像域分離信号により白黒以外の画像領域として分離された領域に対しては通常符号化モードとし前記DCレベル変換処理から全ての符号化処理を行わせ、像域分離信号により白黒画像領域として分離された領域に対しては白黒符号化モードとしDCレベル変換後の正の値に1を加えた値を用い、かつ、ウェーブレット分割レベルを0として、エントロピー符号化処理を行わせるように、前記圧縮符号化手段中の処理内容を切換える、
請求項1又は2記載の画像処理装置。
The compression encoding means compresses and encodes the document image data at least in the order of DC level conversion, color space conversion processing, two-dimensional wavelet conversion processing, quantization processing, and entropy coding processing.
The processing content switching means sets a normal coding mode for an area separated as an image area other than black and white by the image area separation signal, and performs all coding processing from the DC level conversion processing. Is set to a black and white encoding mode for a region separated as a black and white image region, a value obtained by adding 1 to a positive value after DC level conversion is used, and a wavelet division level is set to 0 to perform entropy encoding processing. Switching the processing contents in the compression encoding means so that
The image processing device according to claim 1.
前記処理内容切換え手段は、前記文書画像データ全体に対して通常符号化モードと白黒符号化モードとの何れか一方を適用するように処理内容を切換える、請求項1ないし3の何れか一記載の画像処理装置。4. The processing method according to claim 1, wherein the processing content switching unit switches the processing content so that one of a normal encoding mode and a black-and-white encoding mode is applied to the entire document image data. Image processing device. 前記圧縮符号化手段は、圧縮符号化した符号データのメインヘッダ領域中に適用した通常符号化モードと白黒符号化モードとの何れか一方の符号化モード情報を記述する、請求項4記載の画像処理装置。The image according to claim 4, wherein the compression coding unit describes one of coding mode information of a normal coding mode and a black-and-white coding mode applied in a main header area of the compression-coded code data. Processing equipment. 前記処理内容切換え手段は、前記文書画像データを複数に分割して符号化する或る小領域単位で通常符号化モードとするか白黒符号化モードとするか処理内容を動的に切換える、請求項1ないし3の何れか一記載の画像処理装置。The processing content switching means dynamically switches the processing content between a normal encoding mode and a black-and-white encoding mode in a unit of a certain small area in which the document image data is divided and encoded. The image processing apparatus according to any one of claims 1 to 3. 或る小領域単位が、文書画像データが複数に分割されて符号化されるタイル単位である、請求項6記載の画像処理装置。The image processing apparatus according to claim 6, wherein the certain small area unit is a tile unit in which the document image data is divided into a plurality of pieces and encoded. 或る小領域単位が、文書画像データが複数に分割走査されて符号化されるラスタライン単位である、請求項6記載の画像処理装置。7. The image processing apparatus according to claim 6, wherein the certain small area unit is a raster line unit in which document image data is divided and scanned into a plurality of pieces and encoded. 前記圧縮符号化手段は、圧縮符号化した符号データのメインヘッダ領域中に各タイル毎に適用した通常符号化モードと白黒符号化モードとの何れかの符号化モード情報を記述する、請求項7記載の画像処理装置。8. The compression encoding unit according to claim 7, wherein in a main header area of the compression-encoded code data, encoding mode information of one of a normal encoding mode and a monochrome encoding mode applied to each tile is described. An image processing apparatus as described in the above. 前記圧縮符号化手段は、圧縮符号化した符号データのメインヘッダ領域中に適用した通常符号化モードと白黒符号化モードとの切換えラスタラインに関する符号化モード情報を記述する、請求項8記載の画像処理装置。9. The image according to claim 8, wherein said compression coding means describes coding mode information relating to a raster line for switching between a normal coding mode and a black and white coding mode applied in a main header area of the compression-coded code data. Processing equipment. 前記圧縮符号化手段は、圧縮符号化した各タイルの符号データ中にそのタイルに適用した通常符号化モードと白黒符号化モードとの何れかの符号化モード情報を記述する、請求項7記載の画像処理装置。8. The compression encoding device according to claim 7, wherein the compression encoding unit describes, in the code data of each tile that has been compression encoded, one of encoding mode information of a normal encoding mode and a monochrome encoding mode applied to the tile. Image processing device. 前記圧縮符号化手段は、圧縮符号化した符号データ中に適用した通常符号化モードと白黒符号化モードとの切換えラスタラインに関する符号化モード情報を記述する、請求項8記載の画像処理装置。9. The image processing apparatus according to claim 8, wherein said compression encoding means describes encoding mode information on a raster line for switching between a normal encoding mode and a black-and-white encoding mode applied to the encoded data. コンピュータにインストールされ、前記コンピュータに、文書画像データをJPEG2000アルゴリズムに従い圧縮符号化する圧縮符号化機能と、
前記文書画像データ中に混在する白黒画像領域と白黒以外の画像領域との像域分離信号に基づき前記圧縮符号化手段による処理内容を切換える処理内容切換え機能と、
を実行させる画像処理用プログラム。
A compression encoding function installed on a computer, for compressing and encoding document image data in accordance with the JPEG2000 algorithm;
A processing content switching function of switching processing content by the compression encoding unit based on an image area separation signal of a monochrome image area and a non-black and white image area mixed in the document image data;
An image processing program that executes
請求項13記載の画像処理用プログラムを記憶したコンピュータ読取り可能な記憶媒体。A computer-readable storage medium storing the image processing program according to claim 13.
JP2003014764A 2003-01-23 2003-01-23 Image processing apparatus and image processing method Expired - Fee Related JP4010452B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003014764A JP4010452B2 (en) 2003-01-23 2003-01-23 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003014764A JP4010452B2 (en) 2003-01-23 2003-01-23 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2004228956A true JP2004228956A (en) 2004-08-12
JP4010452B2 JP4010452B2 (en) 2007-11-21

Family

ID=32902709

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003014764A Expired - Fee Related JP4010452B2 (en) 2003-01-23 2003-01-23 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4010452B2 (en)

Also Published As

Publication number Publication date
JP4010452B2 (en) 2007-11-21

Similar Documents

Publication Publication Date Title
US8150179B2 (en) Image processing apparatus
US7336852B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus and recording medium for image processing program
JP4136951B2 (en) Image processing apparatus, program, and storage medium
JP2004221633A (en) Image processing apparatus, image processing program, and storage medium
US20040208379A1 (en) Image processing apparatus that adjusts image size to make image divisible into tiles
JP4315928B2 (en) Image processing apparatus and image processing method
JP2004236299A (en) Image processing apparatus, image forming apparatus, image processing method, program and storage medium
JP2004228952A (en) Image processor, program for processing image, and storage medium
JP4111909B2 (en) Image processing apparatus, image processing program, and storage medium
JP4010452B2 (en) Image processing apparatus and image processing method
JP4169190B2 (en) Image reading apparatus, image forming apparatus, image reading processing method, program, and storage medium
JP4674100B2 (en) Image processing device
JP4014087B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP2004228964A (en) Image processor, image forming apparatus, program, and storage medium
JP3912752B2 (en) Image processing apparatus, program, and storage medium
JP4093871B2 (en) Image forming apparatus, program, and storage medium
JP4090352B2 (en) Image processing apparatus, image processing method, image forming apparatus, program, and storage medium
JP4046223B2 (en) Image processing apparatus and image processing method
JP3784755B2 (en) Image processing apparatus, image forming apparatus, program, and storage medium
JP2004235935A (en) Image processing apparatus, image forming apparatus, program, and storage medium
JP2004236219A (en) Image compression apparatus, decoder, image forming apparatus, program, and storage medium
JP4111863B2 (en) Image processing apparatus, image forming apparatus, image processing program, and storage medium
JP2004236220A (en) Encoder, information management apparatus, decoder, image forming apparatus, encoding program, information management program, decoding program, and storage medium
JP2005130244A (en) Image processing apparatus and image processing method
JP4067416B2 (en) Image processing apparatus, image forming apparatus, program, and storage medium

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20041008

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050824

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20050829

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050829

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20060925

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070606

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070806

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: 20070829

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070830

R151 Written notification of patent or utility model registration

Ref document number: 4010452

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110914

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120914

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130914

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees