JP3690102B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP3690102B2 JP3690102B2 JP03447098A JP3447098A JP3690102B2 JP 3690102 B2 JP3690102 B2 JP 3690102B2 JP 03447098 A JP03447098 A JP 03447098A JP 3447098 A JP3447098 A JP 3447098A JP 3690102 B2 JP3690102 B2 JP 3690102B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- compressed image
- decompression
- input
- compressed
- 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
- 238000003672 processing method Methods 0.000 title claims description 5
- 230000006837 decompression Effects 0.000 claims description 105
- 239000002131 composite material Substances 0.000 claims description 36
- 230000006835 compression Effects 0.000 claims description 36
- 238000007906 compression Methods 0.000 claims description 36
- 239000000872 buffer Substances 0.000 claims description 21
- 238000000034 method Methods 0.000 claims description 17
- 230000015572 biosynthetic process Effects 0.000 claims description 11
- 238000003786 synthesis reaction Methods 0.000 claims description 11
- 239000000203 mixture Substances 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 18
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000002194 synthesizing effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Landscapes
- Editing Of Facsimile Originals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Image Processing (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、複数の入力画像を合成した合成画像を表す画像データを生成・出力する画像処理装置に関する。
【0002】
【従来の技術】
従来より、記録用紙の同一面に複数ページ分の画像データを出力する機能を備えた機器が開発・市販されている。以下、この種の機能を実現する従来の装置について説明するが、ここでは、説明の便宜上、記録用紙の同一面に2ページ分の画像データを出力する動作モードを2アップモード、4ページ分の画像データを出力する動作モードを4アップモード、Nページ分の画像データを出力する動作モードをNアップモードとし、最も一般的な2アップモードでの動作を可能とした装置を例に挙げて説明する。なお、記録用紙の同一面に出力される各画像データは同一であってもよいし互いに相違していてもよいものとする。
【0003】
2アップモードでの動作を可能とする従来の装置としては、入力された2ページ分の圧縮画像データを伸長して装置内部のメモリ上に展開し、しかる後に合成画像を出力する装置が存在する。しかし、この場合、2ページ分の伸長画像データを記憶するに十分な容量のメモリが必要となるため、装置の製造コストが増加してしまうという問題があった。なお、画像データを圧縮・伸長するようにしているのは、当該装置を適用した機器が一時的に画像データを格納するために必要となる記憶容量(実際にはハードディスクドライブの記憶容量)を低減するためである。
【0004】
上記問題を解決しようとして、特開平5−244388号公報に記載された画像記録装置が提案されている。この画像記録装置は、入力された2ページ分の圧縮画像データを1ページの記録用紙上の副走査方向に連続して伸長・出力することによって記録用紙上に合成画像を形成するものである。この画像記録装置によれば、入力された2ページ分の圧縮画像データの伸長および合成を装置内部のメモリ上で行うことなく、記録用紙上に合成画像を形成することができる。
【0005】
【発明が解決しようとする課題】
上述したように、特開平5−244388号公報記載の画像記録装置では、記録用紙上に2ページ分の画像データを合成・出力する2アップモードにおいて、入力された2ページ分の圧縮画像データは1ページの記録用紙上の副走査方向に連続して伸長され、図13(c)に示すように、記録用紙上に画像が形成される方向は記録用紙の長辺方向に一致する。
【0006】
したがって、上記画像記録装置を例えば複写機に適用した場合、図13(a)に示すように、原稿の短辺方向が副走査方向に一致している場合には、入力した画像データに回転処理を施さずに処理を完了することが可能であるが、図13(b)に示すように、原稿の長辺方向が副走査方向に一致している場合には、入力した画像データに90度または270度の回転処理を施さなければ図13(c)に示すような結果は得られない。すなわち、原稿の副走査方向が長辺方向となり得る環境下では、画像データを回転させるための回転手段を設ける必要があり、製造コストの増加を招いてしまう、という欠点がある。また、仮に、回転手段を設けて画像データの回転処理を可能としても、回転処理に要する時間だけ装置全体の処理速度が低下してしまう、という問題がある。
【0007】
さらに、上記画像記録装置を、記録用紙上に4ページ分の画像データを合成・出力する4アップモードモードに対応させると、装置全体の製造コストが増加してしまうという問題がある。4アップモードでは、例えば、図14に示すように、記録用紙上の副走査方向に2ページ分、さらに主走査方向に2ページ分の合計4ページ分の画像データを記録用紙1ページに出力することになるが、図15のタイミングチャートに示すように、少なくとも、主走査方向に並ぶ2ページ分の画像データを伸長および合成するメモリが必要となってしまい、このことが装置全体の製造コストを増加させてしまうのである。また、主走査方向に並ぶ2ページ分の画像データを伸長および合成するメモリを設け、4アップモードモードに対応させても、当該メモリの書き込み/読み出しに要する時間だけ装置全体の処理速度が低下してしまう、という問題がある。
【0008】
本発明は上述した事情に鑑みてなされたものであり、画像データを展開するためのメモリと画像データに回転処理を施す回転手段とを備えることなく、任意の方向で入力される複数の入力画像を合成した合成画像を表す画像データを生成・出力することができる画像処理装置を提供することを目的とする。
【0009】
【課題を解決するための手段】
上述した課題を解決するために、本発明に係る画像処理装置は、複数の入力画像を予め設定された合成条件に従って合成した合成画像を表す画像データを出力する画像処理装置であって、前記複数の入力画像を表す複数の圧縮画像データを入力する圧縮画像データ入力手段と、対象圧縮画像データを伸長して出力する伸長手段と、前記伸長手段によって所定量の画像データが伸長される毎に、前記圧縮画像データ入力手段により入力された前記複数の圧縮画像データの中から前記合成条件に基づいて前記対象圧縮画像データを選択する伸長制御手段と、前記伸長手段から出力された画像データを順次出力する出力手段と、を備え、前記伸長手段は、複数の圧縮方式で圧縮された圧縮画像データを伸長する複数の伸長器を有し、前記対象圧縮画像データに応じた伸長器によって前記対象圧縮画像データを伸長することを特徴としている。この構成によれば、上記複数の伸長器のうち圧縮画像データに応じた伸長器によって圧縮画像データの伸長が行われるとともに、伸長手段が伸長する圧縮画像データは、所定量の画像データが伸長される毎に、合成条件に従って切替えられる。したがって、異なる圧縮方式で圧縮された各圧縮画像データが適切な伸長器で伸長されるとともに、出力手段から出力される画像データは合成画像を表す画像データとなる。
【0010】
さらに、上記構成において、前記伸長制御手段は、前記伸長手段から出力された画像データのデータ数に基づいて前記対象圧縮画像データを選択するようにしてもよく、この場合には、伸長手段で伸長された画像データのデータ数に基づいて上記切り替えが行われる。または、前記伸長制御手段は、前記伸長手段に入力された圧縮画像データのデータ数に基づいて前記対象圧縮画像データを選択するようにしてもよく、この場合には、伸長手段により伸長される圧縮画像データのデータ数に基づいて上記切り替えが行われる。あるいは、前記圧縮画像データ入力手段により入力される前記複数の圧縮画像データは所定の識別データを包含し、前記伸長制御手段は、前記伸長手段に入力された圧縮画像データ中の識別データに基づいて前記対象圧縮画像データを選択するようにしてもよい。この場合には、伸長手段により伸長される圧縮画像データ中の識別データに基づいて上記切り替えが行われる。
【0011】
また、上記各構成において、前記伸長制御手段によって選択された前記対象圧縮画像データは、対応する前記入力画像の所定ライン分の画像データを圧縮してなるようにしてもよい。この場合には、伸長手段により伸長される圧縮画像データは、対応する入力画像の所定ライン分を単位として切り替えられる。または、前記伸長制御手段によって選択された前記対象圧縮画像データは、対応する前記入力画像の所定ブロック分の画像データを圧縮してなるようにしてもよい。この場合には、伸長手段により伸長される圧縮画像データは、対応する入力画像の所定ブロック分を単位として切り替えられる。
【0012】
さらに、上記各構成において、前記出力手段は前記伸長手段により伸長された伸長画像データを一時的に格納するバッファを備え、該バッファに格納された画像データを前記合成画像のライン毎に出力するようにしてもよい。この場合、出力手段から出力される画像データは、合成画像のライン毎に出力される。よって、例えば、圧縮画像データがブロック単位で伸長される場合にも、出力手段から出力される画像データは合成画像を表す画像データになる。
【0013】
また、別の構成によれば、複数の入力画像を予め設定された合成条件に従って合成した合成画像を表す画像データを出力する画像処理装置であって、前記複数の入力画像を表す複数の圧縮画像データを入力する入力手段と、前記入力手段によって入力された前記複数の圧縮画像データを互いに独立に伸長する伸長手段と、前記伸長手段による複数の伸長結果を前記合成画像を表す画像データとして選択的に出力する出力手段と、前記出力手段によって出力された伸長結果が対応する入力画像のライン分だけ出力される毎に、前記出力手段が出力する伸長結果を前記合成条件に基づいて決定する選択手段とを具備することを特徴としている。この構成によれば、出力手段が出力する画像データは、所定量の画像データが出力される毎に、合成条件に従って切替えられる。したがって、出力手段から出力される画像データは合成画像を表す画像データとなる。また、本発明の別の態様に係る画像処理方法は、複数の圧縮方式で圧縮された圧縮画像データを伸長する複数の伸長器を有する画像処理装置に、複数の入力画像を予め設定された合成条件に従って合成した合成画像を表す画像データ、を出力させる画像処理方法であって、前記複数の入力画像を表す複数の圧縮画像データを前記画像処理装置が受取る第1のステップと、前記第1のステップにて受取った前記複数の圧縮画像データから前記合成条件に基づいて順次選択される対象圧縮画像データを前記画像処理装置が伸長して出力する第2のステップと、を含み、前記第2のステップにおいては、前記画像処理装置は、所定量の画像データを伸長する毎に前記合成条件に基づいて対象圧縮画像データの選択を切替えるとともに、前記複数の伸長器のうち、選択した対象圧縮画像データに応じた伸長器によってその対象圧縮画像データを伸長することを特徴としている。
【0014】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態について説明する。なお、各実施形態に関する説明においては、理解し易さを優先して、合成画像データを記録する記録媒体を記録用紙としているが、これに限らないことは言うまでもない。
【0015】
1:第1実施形態
1−1:構成
図1は本発明の第1実施形態に係る画像処理装置の機能構成を示すブロック図であり、この図に示すように、第1実施形態に係る画像処理装置は、コードFIFO101,102と、コード入力部103と、伸長部104と、データ出力部105と、伸長制御部106とから構成されている。なお、FIFOはFIFO(First-In Fast-Out)バッファの意であり、他の実施形態でも同様である。
【0016】
図1において、コードFIFO101,102は、それぞれ原稿1ページ分の圧縮画像データを本画像処理装置が外部の記憶装置(例えばハードディスク)から読み出す速度と、コード入力部103における圧縮画像データの入力速度との速度差を調整する。また、コード入力部103は、伸長制御手段106からの圧縮画像データ選択信号に基づいて、コードFIFO101からの圧縮画像データまたはコードFIFO102からの圧縮画像データのどちらか一方を選択し、選択した圧縮画像データを入力して伸長部104へ出力する。伸長部104は、コード入力部103から入力した圧縮画像データを伸長して伸長画像データを生成し、これをデータ出力部105へ出力する。データ出力部105は、伸長部104から入力した伸長画像データを合成画像のライン毎に順に出力する。
【0017】
伸長制御部106は、伸長部104から入力した伸長画像データのデータ数(白黒画像の場合には画素数と一致)を計数するとともに、その計数値と内部のレジスタに予め設定された画像データ数(原稿中の1ラインあたりの画像データ数であり、値はM)とを比較し、両者が一致した場合に、内部のレジスタに予め設定された原稿選択順序情報(原稿の入力順序を示し、本実施形態では原稿1ページ目の後に原稿2ページ目、という順序を示す)に基づいて、コード入力部103において次の原稿の圧縮画像データが選択されるような圧縮画像データ選択信号を生成し、これをコード入力部103へ出力する。
【0018】
1−2:動作
図2は、上述した構成の画像処理装置の動作を説明するためのタイミングチャートであり、以下、この図を参照して当該画像処理装置の動作について説明する。なお、以下の説明において、当該画像処理装置は、図3に示すように、M画素×Nラインからなる原稿2ページ分の画像データを合成し、2M画素×Nラインからなる記録用紙1ページ上の画像データを生成するものとする。また、これらの原稿は、入力画像をライン単位に圧縮する代表的な圧縮アルゴリズムであるMH(Modified Huffman)の圧縮アルゴリズムにより圧縮された形態で外部の記憶装置に蓄積されており、当該記憶装置から読み出された各圧縮画像データは、コード入力部103に途切れることなく入力されるものとする。また、伸長制御部106は、伸長部104からの圧縮画像データの入力要求に応答し、コード入力部103から伸長部104への圧縮画像データの出力を制御するものとする。
【0019】
まず初めに、伸長制御部106からの圧縮画像データ選択信号に基づいて作動するコード入力部103により、原稿1ページ目の第1ラインの圧縮画像データ“Code▲1▼−1”が選択され、これが伸長部104に入力される。伸長部104では、MHのアルゴリズムによる伸長が行われ、伸長結果が順にデータ出力部105へ出力される。原稿1ページ目の第1ライン分の伸長画像データ“Data▲1▼−1”が伸長部104から全て出力されると、伸長制御部106からの圧縮画像データ選択信号が切り替わり、これに基づいて作動するコード入力部103により、原稿2ページ目の第1ラインの圧縮画像データ“Code▲2▼−1”が選択され、当該圧縮画像データが伸長部104に入力される。原稿2ページ目の第1ライン分の伸長画像データ“Data▲2▼−1”が全て出力されると、次に原稿1ページ目の第2ラインの圧縮画像データ“Code▲2▼−2”が選択される。上述した処理により、原稿2ページ分の第1ライン分の伸長画像データの出力が完了し、記録用紙上に合成画像の第1ラインの画像データが記録される。
以後、上述と同様の処理が原稿第2ラインから第Nラインまで繰り返され、最終的には、記録用紙上に2M画素×Nラインの合成画像が形成される。
【0020】
なお、第1実施形態において、伸長制御部106は、伸長部104からの圧縮画像データの入力要求に応答し、コード入力部103から伸長部104への圧縮画像データの入力を制御するようにしているが、これに限らず、伸長部104に対して所定のタイミングで圧縮画像データを入力するようにしてもよい。よって、他の各実施形態においては、伸長部104への圧縮画像データの入力の制御については、特に断らないものとする。
【0021】
また、圧縮画像データとして、MHの圧縮アルゴリズムによりライン毎に圧縮されたものを用いているが、これに限らず、入力画像をブロック単位に圧縮するJPEG(Joint Photographic Experts Group)などの圧縮アルゴリズムによりブロック毎に圧縮されたものを用いてもよいし、その他の圧縮アルゴリズムにより圧縮されたものを用いてもよい。また、原稿2ページを記録用紙上の主走査方向に連続伸長して合成する場合について説明したが、従来通り記録用紙上の副走査方向に連続伸長して合成することも可能であるし、3ページ以上の合成も容易に実現できる。また、入力される各原稿の主走査方向の画素数(M)を同一としたが、それぞれ異なる画素数のものを用いてもよいことは言うまでもない。
【0022】
ここで、3ページ以上の合成処理の一例を挙げる。
図4は、第1実施形態に係る画像処理装置の4アップモード時の動作を説明するためのタイミングチャートであり、以下、図4を参照して4アップモード時の動作について説明する。
4アップモードでは、外部の記憶装置に書き込まれた原稿4ページ分の圧縮画像データのうち、まず原稿2ページ目と原稿4ページ目の圧縮画像データがそれぞれライン毎に交互に伸長され、これによって得られた伸長画像データが出力される。原稿2ページ目と原稿4ページ目の全ての伸長画像データがデータ出力部105から出力されると、記録用紙上には原稿2ページ目と原稿4ページ目との合成画像が形成されていることになる。そして、原稿2ページ目と原稿4ページ目の全ての圧縮画像データの読み出しが終了した後に、原稿1ページ目と原稿3ページ目の圧縮画像データがそれぞれライン毎に交互に伸長され、これによって得られた伸長画像データが出力される。原稿1ページ目と原稿3ページ目の全ての伸長画像データがデータ出力部105から出力されると、記録用紙上には原稿1〜4ページ目の合成画像が形成されていることになる。
すなわち、従来の技術では、少なくとも原稿2ページ分の圧縮画像データを展開するためのメモリを備える必要があったが、第1実施形態に係る画像処理装置では、そのようなメモリを設けることなく4アップモードを実現できる。もちろん、4アップモードに限らず、記録用紙上の主走査方向および副走査方向に任意のページ数の原稿を合成するNアップモードも実現可能である。しかも、図13(b)に示すようなケースであっても、回転処理を行うことなく合成画像を得ることができる。
【0023】
2:第2実施形態
2−1:構成
図5は本発明の第2実施形態および第3実施形態に係る画像処理装置の機能構成を示すブロック図であり、この図において図1と共通する部分には同一の符号を付し、その説明を省略する。ただし、第2実施形態における伸長制御部106およびデータ出力部105は、第1実施形態における伸長制御部106およびデータ出力部105と異なった機能を有することから、以下にそれらの機能を説明する。
【0024】
第2実施形態における伸長制御部106は、伸長部104に入力された圧縮画像データのデータ数を計数するとともに、その計数値と内部のレジスタに予め設定された圧縮画像データ数K(原稿中の1ブロックラインあたりの圧縮画像データ数)とを比較し、両者が一致した場合に、内部のレジスタに予め設定された原稿選択順序情報に基づいて、コード入力部103において次の原稿の圧縮画像データが選択されるような圧縮画像データ選択信号を生成し、これをコード入力部103へ出力する。また、第2実施形態におけるデータ出力部105は、原稿Lライン分の伸長画像データを格納可能なブロックバッファを2組だけ備え、図6(a)に示すように、伸長部104から出力されたL画素×Lラインからなるブロック単位の伸長画像データをブロックバッファに書き込むとともに、図6(b)に示すように、ブロックバッファからライン単位に伸長画像データを読み出して出力する。データ出力部105は、上記2組のブロックバッファの書き込み/読み出しをブロックライン毎に交互に切り替えることで、連続したデータ出力を可能としている。
【0025】
2−2:動作
図7は、上述した構成の画像処理装置の動作を説明するためのタイミングチャートであり、以下、この図を参照して当該画像処理装置の動作について説明する。なお、以下の説明において、当該画像処理装置は、第1実施形態に係る画像処理装置と同様の前提を有するものとする。すなわち、当該画像処理装置は、図3に示すように、M画素×Nラインからなる原稿2ページ分の画像データを合成し、2M画素×Nラインからなる記録用紙1ページ上の画像データを生成するものとする。
【0026】
また、これらの原稿は、入力画像をブロック単位に圧縮するJPEGに準拠した圧縮アルゴリズムによりL×Lからなるブロック単位に圧縮され、かつブロックライン毎に異なる画像データとして独立に圧縮されるものとする。すなわち、JPEGでは1ページ内の各ブロックは互いに関連を有して圧縮されることになるが、ここでは、上記関連が各ブロックライン内で完結するような圧縮アルゴリズムを採用している。
【0027】
また、このブロックライン単位に圧縮された圧縮画像データは、各ブロックラインにおける圧縮画像データのデータ数が等しくなるように、ダミーデータ(伸長結果に影響を及ぼさないデータ)が付加された形態で外部の記憶装置に蓄積されており、当該記憶装置から読み出された各圧縮画像データは、コード入力部103に途切れることなく入力されるものとする。また、原稿選択順序情報および入力原稿のブロックライン毎の圧縮画像データ数は、予め伸長制御部106内部のレジスタに記憶されているものとする。
【0028】
まず初めに、伸長制御部106からの圧縮画像データ選択信号に基づいて作動するコード入力部103により、原稿1ページ目の第1ブロックラインの圧縮画像データ“Code▲1▼−1”が選択され、これが伸長部104に入力される。伸長部104では、JPEGに準拠したアルゴリズムによりブロック単位の伸長が行われ、図6(a)に示すように、伸長結果が順にデータ出力部105内の一方のブロックバッファへ書き込まれる。
【0029】
原稿1ページ目の第1ブロックラインの全ての圧縮画像データが伸長部104に入力されると、伸長制御部106からの圧縮画像データ選択信号が切り替わり、これに基づいて作動するコード入力部103により、原稿2ページ目の第1ブロックラインの圧縮画像データ“Code▲2▼−1”が選択され、当該圧縮画像データが伸長部104に入力される。伸長部104では、原稿1ページ目の第1ブロックラインの時と同様の伸長処理が行われ、図6(a)に示すように、伸長画像データ“Data▲2▼−1”がブロック単位で順にデータ出力部105内の一方のブロックバッファに書き込まれる。
【0030】
原稿1ページ目および原稿2ページ目の第1ブロックラインの伸長画像データが全てデータ出力部105内の一方のブロックバッファに書き込まれると、データ出力部105は、ブロックバッファの読み出し/書き込みを切り替え、図6(b)に示すように、一方のブロックバッファからライン単位で伸長画像データ“Data1”を読み出し、これを順に出力する。この際、他方のブロックバッファには、原稿1ページ目および原稿2ページ目の第2ブロックライン分の伸長画像データが書き込まれている。
上述した処理により、原稿2ページ分の第1ラインから第Lラインまでの伸長画像データの出力が完了し、記録用紙上にLライン分の合成画像が形成される。以後、上述と同様の処理が原稿のL+1ラインからNラインまで繰り返され、最終的には、記録用紙上に2M画素×Nラインの合成画像が形成される。
【0031】
なお、第2実施形態において、伸長部104はブロック単位の伸長画像データを出力するようにしているが、伸長部104内部にブロックバッファを持たせ、ライン単位の伸長画像データを出力するようにしてもよい。また、圧縮画像データはJPEGに準拠した圧縮アルゴリズムによりブロック単位で圧縮されたものを用いているが、これに限らずMHなどの圧縮アルゴリズムによりライン毎に圧縮されたものを用いてもよい。この場合、データ出力部105内部のブロックバッファが不要であることは言うまでもない。また、その他の圧縮アルゴリズムにより圧縮されたものを用いてもよい。
【0032】
また、各圧縮画像データには、データ数が等しくなるようにダミーデータが付加されているが、等長符号化された圧縮画像データのように各圧縮画像データのデータ数が等しい場合には、ダミーデータを付加する必要はない。また、等長符号化されていない圧縮画像データであっても、入力される各ブロックライン毎に圧縮画像データのデータ数を伸長制御部106に予め設定しておくか、または圧縮画像データの入力に合わせて、対応するデータ数を伸長制御部に設定するようにしておけば、ダミーデータを付加する必要はない。
【0033】
また、第2実施形態においては、原稿2ページを記録用紙上の主走査方向に連続伸長して合成する場合について説明したが、第1実施形態と同様に、副走査方向に連続伸長した合成や、2ページ以上の合成、入力される各原稿の主走査方向の画素数がそれぞれ異なる場合の合成、少なくとも2ページ分の圧縮画像データを展開するメモリを備えることのないNアップモードの合成も実現可能である。
【0034】
3:第3実施形態
3−1:構成
第3実施形態の機能構成は図5に示す通りであり、第3実施形態における伸長制御部106が、第2実施形態における伸長制御部106と異なる点は、伸長部104に入力された圧縮画像データの中から原稿1ライン分の圧縮画像データの終端を示す識別データを検出することで圧縮画像データ選択信号を生成し、これをコード入力部103へ出力する点である。
【0035】
3−2:動作
図8は、上述した構成の画像処理装置の動作を説明するためのタイミングチャートであり、以下、この図を参照して当該画像処理装置の動作について説明する。なお、以下の説明において、当該画像処理装置は、第1実施形態に係る画像処理装置と同様の前提を有するものとする。すなわち、当該画像処理装置は、図3に示すように、M画素×Nラインからなる原稿2ページ分の画像データを合成し、2M画素×Nラインからなる記録用紙1ページ上の画像データを生成するものとする。
【0036】
また、これらの原稿はMHの圧縮アルゴリズムによりライン毎に圧縮され、圧縮画像ライン毎にラインの終端を示す識別データが付加された形態で外部の記憶装置に蓄積されており、当該記憶装置から読み出された各圧縮画像データは、コード入力部103に途切れることなく入力されるものとする。
【0037】
まず初めに、伸長制御部106からの圧縮画像データ選択信号に基づいて作動するコード入力部103により、原稿1ページ目の第1ラインの圧縮画像データ“Code▲1▼−1”が選択され、これが伸長部104に入力される。伸長部104では、MHのアルゴリズムにより伸長が行われ、伸長結果が順にデータ出力部105へ出力される。
【0038】
伸長制御部106が、原稿1ページ目の第1ラインの終端を示す識別データを検出すると、伸長制御部106からの圧縮画像データ選択信号が切り替わり、これに基づいて作動するコード入力部103により、原稿2ページ目の第1ラインの圧縮画像データ“Code▲2▼−1”が選択され、当該圧縮画像データが伸長部104に入力される。伸長部104では、原稿1ページ目の第1ライン同様に伸長処理が行われ、伸長画像データ“Data▲2▼−1”が順次データ出力部105へ出力される。さらに伸長制御部106は、原稿2ページ目の第1ラインの終端を示す識別データを検出すると、原稿1ページ目の第2ラインの圧縮画像データ“Code▲1▼−2”を選択する。上述した処理により、原稿2ページ分の第1ラインの伸長画像データの出力が完了し、記録用紙上に合成画像の第1ラインが形成される。
以後、上述と同様の処理が原稿第2ラインから第Nラインまで繰り返され、最終的には、記録用紙上に2M画素×Nラインの合成画像が形成される。
【0039】
なお、第3実施形態において、圧縮画像データとしてMHの圧縮アルゴリズムによりライン毎に圧縮されたものを用いているが、これに限らず、JPEGなどの圧縮アルゴリズムによりブロック毎に圧縮されたものを用いてもよい。また、第3実施形態においては、原稿2ページを記録用紙上の主走査方向に連続伸長して合成する場合について説明したが、第1実施形態と同様に、副走査方向に連続伸長した合成や、3ページ以上の合成、入力される各原稿の主走査方向の画素数がそれぞれ異なる場合の合成、少なくとも2ページ分の圧縮画像データを展開するメモリを備えることのないNアップモードの合成も実現可能である。また、識別データを新たに付加するのではなく、圧縮画像データ中の特定コードをそのまま識別データとして用いるようにしてもよい。
【0040】
4:第4実施形態
4−1:構成
図9は本発明の第4実施形態に係る画像処理装置の機能構成を示すブロック図であり、図5と共通する部分には同一の符号を付し、その説明を省略する。
図9において、コードFIFO107は、コードFIFO101,102と同様に、原稿1ページ分の圧縮画像データを本画像処理装置が外部の記憶装置から読み出す速度と、コード入力部103における圧縮画像データの入力速度との速度差を調整する。
【0041】
また、伸長部104は、MHのアルゴリズムにより圧縮された圧縮画像データを伸長する伸長器A109と、JPEGに準拠した圧縮アルゴリズムにより圧縮された圧縮画像データを伸長する伸長器B110と、入力される圧縮画像データの圧縮方式に基づいて伸長器Aおよび伸長器Bのどちらか一方を選択する伸長器選択部108とから構成され、伸長制御部106の伸長器選択信号に基づいて、コード入力部103から入力された圧縮画像データをその圧縮方式に応じて伸長し、伸長結果をデータ出力部105へ出力する。
【0042】
伸長制御部106は、伸長部104に入力された圧縮画像データのデータ数を計数し、その計数値と伸長制御部106内部のレジスタに予め設定された圧縮画像データ数K(原稿中の1ブロックラインあたりの圧縮画像データ数)とを比較し、両者が一致した場合には、伸長制御部106内部のレジスタに予め設定された原稿選択順序情報(本実施形態では原稿1ページ目、原稿2ページ目、原稿3ページ目の順序となっている)に基づいて圧縮画像データ選択信号を生成し、コード入力部103へ出力する。また、伸長制御部106内部のレジスタに予め設定された、原稿の圧縮方式を示す原稿圧縮情報に基づいて、伸長部104に入力される圧縮画像データの圧縮方式に応じた伸長器を選択するための伸長器選択信号を生成し、これを伸長部104へ出力する。
【0043】
4−2:動作
次に、上述した構成の画像処理装置の動作について説明する。ただし、第4実施形態では、図10に示すように、原稿1ページ目はJPEGに準拠した圧縮アルゴリズムにより圧縮されたもの、2ページ目はMHの圧縮アルゴリズムにより圧縮されたもの、原稿3ページ目はJPEGに準拠した圧縮アルゴリズムにより圧縮されたものであり、これら2種類の圧縮方式で圧縮された3ページ分の原稿を記録用紙1ページ上の画像データとして合成するものとする。
【0044】
伸長制御部106は、伸長部104に入力される圧縮画像データが切り替わる毎に、予め設定された原稿圧縮情報に基づいて、最適な方式で伸長されるように伸長器を切り替えるように制御する。このため、異なる圧縮方式で圧縮された原稿の合成が可能となる。また、データ出力部105内部のブロックバッファに対する伸長画像データの書き込みは、基本的にブロック単位で行われる。しかし、ここでは、ブロックライン単位で圧縮された圧縮画像データとライン単位で圧縮された圧縮画像データが混在するため、原稿2ページ目の伸長画像データ(ラインデータ列)をそのままブロックデータ列と解釈してブロック単位の書き込みを行うと、書き込みの統一性に乱れが生じることから、ブロックバッファに対する伸長画像データの書き込みは、図11(a)に示すように、原稿2ページ目の書き込み領域に対しては、伸長画像データをライン単位で書き込むように制御されている。なお、ブロックバッファからの合成画像の読み出しは、図11(b)に示すように、ライン単位で読み出すよう制御されている。
【0045】
なお、第4実施形態において、2つの異なる圧縮方式で圧縮された原稿3ページを記録用紙上の主走査方向に連続伸長して合成する場合について説明したが、第2実施形態と同様に、副走査方向に連続伸長した合成や、2ページの合成、4ページ以上の合成、3つ以上の圧縮方式によった原稿の合成、入力される各原稿の主走査方向の画素数がそれぞれ異なる場合の合成、少なくとも2ページ分の圧縮画像データを展開するメモリを備えることのないNアップモードの合成も実現可能である。
【0046】
5:第5実施形態
5−1:構成
図12は本発明の第5実施形態に係る画像処理装置の機能構成を示すブロック図であり、この図に示すように、第5実施形態に係る画像処理装置は、コードFIFO201〜203と、伸長部204〜206と、データ出力部207と、データ選択部208とから構成されている。
【0047】
図12において、コードFIFO201〜203は、それぞれ原稿1ページ分の圧縮画像データを本画像処理装置が外部の記憶装置から読み出す速度と、各伸長部における圧縮画像データの入力速度との速度差を調整する。また、伸長部204〜206は、それぞれ対応するコードFIFOから入力した圧縮画像データを伸長して伸長画像データを生成し、これをデータ出力部207へ出力する。データ出力部207は、データ選択部208からの伸長画像データ選択信号に基づいて、各伸長部からの各伸長画像データからいずれか1つを選択し、選択した伸長画像データをデータ出力部207へ出力する。
【0048】
また、データ選択部208は、データ出力部207から出力された伸長画像データのデータ数を計数するとともに、その計数値と内部のレジスタに格納された画像データ数Mとを比較し、両者が一致した場合に、内部のレジスタに予め設定された原稿選択順序情報に基づいて、データ出力部207において次の原稿の伸長画像データが選択されるよう伸長画像データ選択信号を生成し、これをデータ出力部207へ出力する。
【0049】
5−2:動作
次に、上記構成の画像処理装置の動作について説明する。
なお、以下の説明において、各コードFIFOには対応する原稿ページの圧縮画像データが蓄積され各伸長部に供給されており、各伸長部では、供給された圧縮画像データを随時伸長し、データ出力部207が入力可能であれば、伸長画像データをデータ出力部207に対して入力するものとする。
【0050】
まず初めに、データ選択部208からの伸長画像データ選択信号に基づいて作動するデータ出力部207により、原稿1ページ目の第1ラインの伸長画像データが選択され、これがデータ出力部207から出力される。データ選択部208はデータ出力部207から出力される伸長画像データのデータ数を計数し、予め設定された原稿1ライン分の画像データ数と比較し、両者が一致した場合には伸長画像データ選択信号を切り替える。これにより、データ出力部207において原稿2ページ目の第1ラインの伸長画像データが選択され、データ出力部207から出力される。以後、原稿2ページ目の1ライン分の伸長画像データについて同様の処理が行われ、データ出力部207から原稿3ページ目の第1ラインの伸長画像データが出力される。
上述した処理が原稿の第2ラインから最終ラインまで繰り返され、最終的には、記録用紙上に合成画像の全ラインが形成される。
【0051】
なお、上述した第5実施形態において、各原稿の圧縮画像データを伸長する伸長部としては、入力される圧縮画像データに合わせて最適な伸長器を用いることができる。したがって、各原稿の圧縮画像データは、JPEGなどの圧縮アルゴリズムによりブロック単位で圧縮されたものであっても、MHの圧縮アルゴリズム等により圧縮されたものであってもよい。また、第5実施形態においては、原稿3ページを記録用紙上の主走査方向に連続伸長して合成する場合について説明したが、第1実施形態と同様に、副走査方向に連続伸長した合成や、2ページの合成、4ページ以上の合成、入力される各原稿の主走査方向の画素数がそれぞれ異なる場合の合成、少なくとも2ページ分の圧縮画像データを展開するメモリを備えることのないNアップモードの合成も実現可能である。
【0052】
6:補足
なお、上述した各実施形態は、動作プログラムを格納したROM(Read Only Memory)と、ROMに格納された動作プログラムを実行するCPU(中央処理装置)、CPUにアクセスされるRAM(Random Access Memory)等を備えたシステムにより実現してもよいし、各種回路要素を接続した回路として実現してもよい。前者の場合には、ROMを書き換え可能な不揮発性メモリに代え、動作プログラムを容易に更新できるようにしてもよい。
【0053】
【発明の効果】
以上説明したように、本発明によれば、原稿を展開および合成するためのメモリおよび画像情報を回転処理するための回転手段を設けることなく、複数の入力画像を表す複数の圧縮画像データから、合成画像を表す画像データを生成し出力することができる。したがって、自装置の製造コストを大幅に低減することができるとともに、画像処理効率を向上させることができる。
【図面の簡単な説明】
【図1】 本発明の第1実施形態に係る画像処理装置の機能構成を示すブロック図である。
【図2】 同装置の動作を説明するためのタイミングチャートである。
【図3】 同装置により生成される合成画像について説明するための図である。
【図4】 同装置における4アップモードでの動作を説明するためのタイミングチャートである。
【図5】 本発明の第2実施形態および第3実施形態に係る画像処理装置の機能構成を示すブロック図である。
【図6】 本発明の第2実施形態に係る画像処理装置におけるブロックバッファについて説明するための図であり、(a)は書き込み動作の説明図、(b)は読み出し動作の説明図である。
【図7】 同装置の動作を説明するためのタイミングチャートである。
【図8】 本発明の第3実施形態に係る画像処理装置の動作を説明するためのタイミングチャートである。
【図9】 本発明の第4実施形態に係る画像処理装置の機能構成を示すブロック図である。
【図10】 同装置により生成される合成画像について説明するための図である。
【図11】 同装置におけるブロックバッファについて説明するための図であり、(a)は書き込み動作の説明図であり、(b)は読み出し動作の説明図である。
【図12】 本発明の第5実施形態に係る画像処理装置の機能構成を示すブロック図である。
【図13】 従来技術における2アップモードの動作を説明するための図であり、(a)は入力方向が短辺方向の原稿、(b)は入力方向が長辺方向の原稿、(c)は合成画像を示す。
【図14】 従来技術における4アップモードで生成される合成画像について説明するための図である。
【図15】 従来技術における4アップモードでの動作例を示すタイムチャートである。
【符号の説明】
101,102,107,201〜203…コードFIFO、103…コード入力部、104,204〜206…伸長部、105,207…データ出力部、106…伸長制御部、108…伸長器選択部、109…伸長器A、110…伸長器B、208…データ選択部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus that generates and outputs image data representing a combined image obtained by combining a plurality of input images.
[0002]
[Prior art]
Conventionally, devices having a function of outputting image data for a plurality of pages on the same surface of a recording sheet have been developed and marketed. Hereinafter, a conventional apparatus that realizes this type of function will be described. Here, for convenience of explanation, an operation mode for outputting image data for two pages on the same side of a recording sheet is set as a 2-up mode and a 4-page operation. The operation mode for outputting image data is a 4-up mode, the operation mode for outputting image data for N pages is an N-up mode, and an apparatus that enables operation in the most common 2-up mode is described as an example. To do. Note that the image data output on the same surface of the recording paper may be the same or different from each other.
[0003]
As a conventional apparatus that enables operation in the 2-up mode, there is an apparatus that decompresses the input compressed image data for two pages and expands it on a memory inside the apparatus, and then outputs a composite image. . However, in this case, there is a problem that the manufacturing cost of the apparatus increases because a memory having a sufficient capacity to store the decompressed image data for two pages is necessary. Note that compression / decompression of image data reduces the storage capacity (actually the storage capacity of the hard disk drive) required for the device to which the device is applied to temporarily store the image data. It is to do.
[0004]
In order to solve the above problem, an image recording apparatus described in Japanese Patent Laid-Open No. 5-244388 has been proposed. This image recording apparatus forms a composite image on recording paper by continuously expanding and outputting the input compressed image data for two pages in the sub-scanning direction on the recording paper of one page. According to this image recording apparatus, it is possible to form a composite image on a recording sheet without performing expansion and composition of the input compressed image data for two pages on a memory inside the apparatus.
[0005]
[Problems to be solved by the invention]
As described above, in the image recording apparatus described in Japanese Patent Laid-Open No. 5-244388, in the 2-up mode in which image data for two pages is combined and output on a recording sheet, the input compressed image data for two pages is As shown in FIG. 13C, the direction in which an image is formed on the recording sheet coincides with the long side direction of the recording sheet.
[0006]
Therefore, when the image recording apparatus is applied to, for example, a copying machine, as shown in FIG. 13A, if the short side direction of the document coincides with the sub-scanning direction, the input image data is rotated. However, when the long side direction of the document matches the sub-scanning direction as shown in FIG. 13B, the input image data is 90 degrees. Alternatively, the result shown in FIG. 13C cannot be obtained unless the rotation process of 270 degrees is performed. That is, in an environment in which the sub-scanning direction of the document can be the long side direction, it is necessary to provide a rotating means for rotating the image data, leading to an increase in manufacturing cost. Further, even if rotation means is provided to enable image data rotation processing, there is a problem that the processing speed of the entire apparatus is reduced by the time required for the rotation processing.
[0007]
Furthermore, if the image recording apparatus is adapted to a 4-up mode mode in which image data for four pages is combined and output on recording paper, there is a problem that the manufacturing cost of the entire apparatus increases. In the 4-up mode, for example, as shown in FIG. 14, a total of four pages of image data for two pages in the sub-scanning direction on the recording paper and two pages in the main scanning direction are output to one page of the recording paper. However, as shown in the timing chart of FIG. 15, at least a memory for decompressing and synthesizing image data for two pages arranged in the main scanning direction is required, which reduces the manufacturing cost of the entire apparatus. It will increase. In addition, even if a memory for expanding and synthesizing image data for two pages arranged in the main scanning direction is provided, the processing speed of the entire apparatus is reduced by the time required for writing / reading the memory even if it is compatible with the 4-up mode. There is a problem that.
[0008]
The present invention has been made in view of the above-described circumstances, and includes a plurality of input images that are input in an arbitrary direction without including a memory for developing image data and a rotation unit that performs rotation processing on the image data. An object of the present invention is to provide an image processing apparatus capable of generating and outputting image data representing a combined image obtained by combining the images.
[0009]
[Means for Solving the Problems]
In order to solve the above-described problems, an image processing apparatus according to the present invention is an image processing apparatus that outputs image data representing a composite image obtained by combining a plurality of input images in accordance with a pre-set combination condition. Compressed image data input means for inputting a plurality of compressed image data representing the input image, decompression means for decompressing and outputting the target compressed image data, and each time a predetermined amount of image data is decompressed by the decompression means, The decompression control means for selecting the target compressed image data from the plurality of compressed image data input by the compressed image data input means based on the synthesis condition, and the image data output from the decompression means are sequentially output. Output means forThe decompression means includes a plurality of decompressors that decompress the compressed image data compressed by a plurality of compression methods, and decompresses the target compressed image data by an decompressor corresponding to the target compressed image data.It is characterized by that. According to this configuration,The compressed image data is decompressed by the decompressor corresponding to the compressed image data among the plurality of decompressors,The compressed image data decompressed by the decompression means is switched according to the synthesis condition every time a predetermined amount of image data is decompressed. Therefore,Each compressed image data compressed by a different compression method is decompressed by an appropriate decompressor,Image data output from the output means is image data representing a composite image.
[0010]
Further, in the above configuration, the decompression control unit may select the target compressed image data based on the number of image data output from the decompression unit. In this case, the decompression unit decompresses the target compressed image data. The above switching is performed based on the number of pieces of image data that have been performed. Alternatively, the decompression control unit may select the target compressed image data based on the number of compressed image data input to the decompression unit. In this case, the decompression is decompressed by the decompression unit. The above switching is performed based on the number of image data. Alternatively, the plurality of compressed image data input by the compressed image data input unit includes predetermined identification data, and the expansion control unit is based on identification data in the compressed image data input to the expansion unit. The target compressed image data may be selected. In this case, the switching is performed based on the identification data in the compressed image data decompressed by the decompressing means.
[0011]
In each of the above-described configurations, the target compressed image data selected by the decompression control unit may be formed by compressing image data for a predetermined line of the corresponding input image. In this case, the compressed image data decompressed by the decompressing means is switched in units of a predetermined line of the corresponding input image. Alternatively, the target compressed image data selected by the decompression control means may be obtained by compressing image data for a predetermined block of the corresponding input image. In this case, the compressed image data decompressed by the decompressing means is switched in units of a predetermined block of the corresponding input image.
[0012]
Furthermore, in each of the above configurations,PreviousThe output means may include a buffer for temporarily storing the decompressed image data decompressed by the decompressing means, and the image data stored in the buffer may be output for each line of the composite image. In this case, the image data output from the output means is output for each line of the composite image. Therefore, for example, even when the compressed image data is expanded in units of blocks, the image data output from the output unit is image data representing a composite image.
[0013]
According to another configuration, there is provided an image processing apparatus that outputs image data representing a composite image obtained by combining a plurality of input images in accordance with a preset composite condition, and a plurality of compressed images representing the plurality of input images An input means for inputting data, an expansion means for expanding the plurality of compressed image data input by the input means independently of each other, and a plurality of decompression results by the expansion means are selectively used as image data representing the composite image Output means for outputting to the output means, and selection means for determining the decompression result output by the output means based on the synthesis condition each time the decompression result output by the output means is output for the corresponding line of the input image It is characterized by comprising. According to this configuration, the image data output by the output unit is switched according to the synthesis condition every time a predetermined amount of image data is output. Therefore, the image data output from the output means is image data representing a composite image.In addition, an image processing method according to another aspect of the present invention is a method of combining a plurality of input images in an image processing apparatus having a plurality of decompressors that decompress compressed image data compressed by a plurality of compression methods. An image processing method for outputting image data representing a synthesized image synthesized according to a condition, wherein the image processing apparatus receives a plurality of compressed image data representing the plurality of input images, and the first step A second step in which the image processing device decompresses and outputs target compressed image data sequentially selected based on the synthesis condition from the plurality of compressed image data received in the step, and the second step In the step, the image processing apparatus switches the selection of the target compressed image data based on the synthesis condition every time a predetermined amount of image data is expanded, and the plurality of expansion images. Of vessel it is characterized by extending the target compressed image data by decompressor in accordance with the target compressed image data selected.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings. In the description of each embodiment, the recording medium on which the composite image data is recorded is used as the recording paper in order to facilitate understanding, but it goes without saying that the present invention is not limited to this.
[0015]
1: First embodiment
1-1: Configuration
FIG. 1 is a block diagram showing the functional configuration of an image processing apparatus according to the first embodiment of the present invention. As shown in FIG. 1, the image processing apparatus according to the first embodiment includes
[0016]
In FIG. 1,
[0017]
The
[0018]
1-2: Operation
FIG. 2 is a timing chart for explaining the operation of the image processing apparatus having the above-described configuration. Hereinafter, the operation of the image processing apparatus will be described with reference to FIG. In the following description, as shown in FIG. 3, the image processing apparatus synthesizes image data for two pages of a document composed of M pixels × N lines, and on one page of recording paper composed of 2M pixels × N lines. It is assumed that image data is generated. Further, these originals are stored in an external storage device in a form compressed by an MH (Modified Huffman) compression algorithm, which is a typical compression algorithm for compressing an input image line by line. It is assumed that the read compressed image data is input to the
[0019]
First, the
Thereafter, the same processing as described above is repeated from the second line to the Nth line of the document, and finally, a composite image of 2M pixels × N lines is formed on the recording paper.
[0020]
In the first embodiment, the
[0021]
The compressed image data is compressed line by line by the MH compression algorithm. However, the compressed image data is not limited to this, but is compressed by a compression algorithm such as JPEG (Joint Photographic Experts Group) that compresses the input image in units of blocks. What was compressed for every block may be used, and what was compressed with the other compression algorithm may be used. Further, the case where two original pages are continuously expanded and combined in the main scanning direction on the recording paper has been described. However, it is also possible to continuously extend and combine the two pages in the sub-scanning direction on the recording paper. You can easily combine more than a page. Further, although the number of pixels (M) in the main scanning direction of each input document is the same, it goes without saying that pixels having different numbers may be used.
[0022]
Here, an example of a composition process of three pages or more is given.
FIG. 4 is a timing chart for explaining the operation in the 4-up mode of the image processing apparatus according to the first embodiment. Hereinafter, the operation in the 4-up mode will be described with reference to FIG.
In the 4-up mode, the compressed image data of the second page of the document and the fourth page of the document among the compressed image data for the four pages of the document written in the external storage device are first expanded alternately for each line. The obtained decompressed image data is output. When all the decompressed image data of the second page of the original and the fourth page of the original are output from the
That is, in the conventional technique, it is necessary to provide a memory for decompressing compressed image data for at least two pages of the document. However, in the image processing apparatus according to the first embodiment, the
[0023]
2: Second embodiment
2-1: Configuration
FIG. 5 is a block diagram showing a functional configuration of the image processing apparatus according to the second and third embodiments of the present invention. In this figure, parts common to those in FIG. Is omitted. However, since the
[0024]
The
[0025]
2-2: Operation
FIG. 7 is a timing chart for explaining the operation of the image processing apparatus having the above-described configuration. Hereinafter, the operation of the image processing apparatus will be described with reference to FIG. In the following description, it is assumed that the image processing apparatus has the same premise as the image processing apparatus according to the first embodiment. That is, as shown in FIG. 3, the image processing apparatus synthesizes image data for two pages of a document composed of M pixels × N lines, and generates image data on one page of recording paper composed of 2M pixels × N lines. It shall be.
[0026]
These originals are compressed into block units of L × L by a JPEG-compliant compression algorithm that compresses input images in block units, and are independently compressed as different image data for each block line. . That is, in JPEG, each block in one page is compressed in association with each other, but here, a compression algorithm is adopted in which the above association is completed in each block line.
[0027]
The compressed image data compressed in units of block lines is externally added with dummy data (data that does not affect the expansion result) so that the number of compressed image data in each block line is equal. The compressed image data read out from the storage device is input to the
[0028]
First, the
[0029]
When all the compressed image data of the first block line of the first page of the document is input to the
[0030]
When all the decompressed image data of the first block line of the first page of the document and the second page of the document are written in one block buffer in the
By the above-described processing, the output of the decompressed image data from the first line to the Lth line for two pages of the document is completed, and a composite image for L lines is formed on the recording paper. Thereafter, the same processing as described above is repeated from the L + 1 line to the N line of the document, and finally, a composite image of 2M pixels × N lines is formed on the recording paper.
[0031]
In the second embodiment, the
[0032]
In addition, dummy data is added to each compressed image data so that the number of data is equal, but when the number of data of each compressed image data is equal, such as compressed image data encoded with equal length, There is no need to add dummy data. In addition, even for compressed image data that has not been encoded with an equal length, the number of compressed image data for each input block line is set in advance in the
[0033]
In the second embodiment, a case has been described in which two pages of a document are continuously expanded and combined in the main scanning direction on the recording paper. However, as in the first embodiment, combining and continuous expansion in the sub-scanning direction are performed. Combining two or more pages, combining when each input document has a different number of pixels in the main scanning direction, and combining N-up mode without a memory for developing compressed image data for at least two pages Is possible.
[0034]
3: Third embodiment
3-1: Configuration
The functional configuration of the third embodiment is as shown in FIG. 5. The difference between the
[0035]
3-2: Operation
FIG. 8 is a timing chart for explaining the operation of the image processing apparatus having the above-described configuration. Hereinafter, the operation of the image processing apparatus will be described with reference to FIG. In the following description, it is assumed that the image processing apparatus has the same premise as the image processing apparatus according to the first embodiment. That is, as shown in FIG. 3, the image processing apparatus synthesizes image data for two pages of a document composed of M pixels × N lines, and generates image data on one page of recording paper composed of 2M pixels × N lines. It shall be.
[0036]
These originals are compressed line by line by the MH compression algorithm, stored in an external storage device in a form in which identification data indicating the end of the line is added for each compressed image line, and read from the storage device. It is assumed that each compressed image data that is output is input to the
[0037]
First, the
[0038]
When the
Thereafter, the same processing as described above is repeated from the second line to the Nth line of the document, and finally, a composite image of 2M pixels × N lines is formed on the recording paper.
[0039]
In the third embodiment, compressed image data compressed for each line by the MH compression algorithm is used. However, the compressed image data is not limited to this, and is compressed for each block by a compression algorithm such as JPEG. May be. In the third embodiment, a case has been described in which two original pages are continuously expanded and combined in the main scanning direction on the recording paper. However, as in the first embodiment, combining and continuous expansion in the sub-scanning direction are performed. Combining 3 pages or more, combining when the number of pixels in the main scanning direction of each input document is different, and combining in N-up mode without having a memory for developing compressed image data for at least 2 pages Is possible. Further, instead of newly adding identification data, a specific code in the compressed image data may be used as identification data as it is.
[0040]
4: Fourth embodiment
4-1: Configuration
FIG. 9 is a block diagram showing a functional configuration of an image processing apparatus according to the fourth embodiment of the present invention. The same reference numerals are given to the same parts as those in FIG.
In FIG. 9, a
[0041]
The decompressing
[0042]
The
[0043]
4-2: Operation
Next, the operation of the image processing apparatus configured as described above will be described. However, in the fourth embodiment, as shown in FIG. 10, the first page of the document is compressed by a compression algorithm compliant with JPEG, the second page is compressed by the MH compression algorithm, and the third page of the document. Is compressed by a compression algorithm compliant with JPEG, and three pages of originals compressed by these two types of compression methods are combined as image data on one page of recording paper.
[0044]
Each time the compressed image data input to the
[0045]
In the fourth embodiment, a case has been described in which three pages of originals compressed by two different compression methods are continuously expanded and combined in the main scanning direction on the recording paper. Combining continuously expanded in the scanning direction, combining two pages, combining four or more pages, combining documents using three or more compression methods, and when the number of pixels in the main scanning direction of each input document is different Combining, N-up mode combining that does not include a memory for developing compressed image data for at least two pages can also be realized.
[0046]
5: Fifth embodiment
5-1: Configuration
FIG. 12 is a block diagram showing a functional configuration of an image processing apparatus according to the fifth embodiment of the present invention. As shown in FIG. 12, the image processing apparatus according to the fifth embodiment includes
[0047]
In FIG. 12,
[0048]
The
[0049]
5-2: Operation
Next, the operation of the image processing apparatus having the above configuration will be described.
In the following description, the compressed image data of the corresponding document page is accumulated in each code FIFO and supplied to each decompression unit. Each decompression unit decompresses the supplied compressed image data as needed, and outputs the data. If the
[0050]
First, the
The above-described processing is repeated from the second line to the last line of the document, and finally all lines of the composite image are formed on the recording paper.
[0051]
In the above-described fifth embodiment, as the decompression unit that decompresses the compressed image data of each document, an optimum decompressor can be used according to the input compressed image data. Therefore, the compressed image data of each document may be compressed in block units by a compression algorithm such as JPEG, or may be compressed by an MH compression algorithm or the like. In the fifth embodiment, a case has been described in which three original pages are continuously expanded and combined in the main scanning direction on the recording paper. However, as in the first embodiment, combining and continuous expansion in the sub-scanning direction are performed. Composition of 2 pages, composition of 4 pages or more, composition when the number of pixels in the main scanning direction of each input document is different, N-up without providing a memory for developing at least two pages of compressed image data Mode synthesis is also possible.
[0052]
6: Supplement
In each of the embodiments described above, a ROM (Read Only Memory) that stores an operation program, a CPU (Central Processing Unit) that executes the operation program stored in the ROM, and a RAM (Random Access Memory) that is accessed by the CPU. Etc., or may be realized as a circuit in which various circuit elements are connected. In the former case, the ROM may be replaced with a rewritable nonvolatile memory so that the operation program can be easily updated.
[0053]
【The invention's effect】
As described above, according to the present invention, from a plurality of compressed image data representing a plurality of input images, without providing a memory for developing and synthesizing a document and a rotating unit for rotating image information, Image data representing a composite image can be generated and output. Therefore, it is possible to significantly reduce the manufacturing cost of the device itself and improve the image processing efficiency.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a functional configuration of an image processing apparatus according to a first embodiment of the present invention.
FIG. 2 is a timing chart for explaining the operation of the apparatus.
FIG. 3 is a diagram for explaining a composite image generated by the apparatus.
FIG. 4 is a timing chart for explaining an operation in a 4-up mode in the apparatus.
FIG. 5 is a block diagram illustrating a functional configuration of an image processing apparatus according to a second embodiment and a third embodiment of the present invention.
6A and 6B are diagrams for explaining a block buffer in an image processing apparatus according to a second embodiment of the present invention, where FIG. 6A is an explanatory diagram of a write operation, and FIG. 6B is an explanatory diagram of a read operation;
FIG. 7 is a timing chart for explaining the operation of the apparatus.
FIG. 8 is a timing chart for explaining the operation of the image processing apparatus according to the third embodiment of the present invention.
FIG. 9 is a block diagram illustrating a functional configuration of an image processing apparatus according to a fourth embodiment of the present invention.
FIG. 10 is a diagram for explaining a composite image generated by the apparatus.
11A and 11B are diagrams for explaining a block buffer in the same device, FIG. 11A is an explanatory diagram of a write operation, and FIG. 11B is an explanatory diagram of a read operation;
FIG. 12 is a block diagram showing a functional configuration of an image processing apparatus according to a fifth embodiment of the present invention.
13A and 13B are diagrams for explaining the operation of the 2-up mode in the prior art, in which FIG. 13A is a document whose input direction is a short side direction, FIG. 13B is a document whose input direction is a long side direction, and FIG. Indicates a composite image.
FIG. 14 is a diagram for describing a composite image generated in the 4-up mode in the conventional technology.
FIG. 15 is a time chart showing an operation example in the 4-up mode in the prior art.
[Explanation of symbols]
101, 102, 107, 201-203 ... code FIFO, 103 ... code input unit, 104, 204-206 ... decompression unit, 105, 207 ... data output unit, 106 ... decompression control unit, 108 ... decompression unit selection unit, 109 ... Expander A, 110 ... Expander B, 208 ... Data selection section
Claims (9)
前記複数の入力画像を表す複数の圧縮画像データを入力する圧縮画像データ入力手段と、
対象圧縮画像データを伸長して出力する伸長手段と、
前記伸長手段によって所定量の画像データが伸長される毎に、前記圧縮画像データ入力手段により入力された前記複数の圧縮画像データの中から前記合成条件に基づいて前記対象圧縮画像データを選択する伸長制御手段と、
前記伸長手段から出力された画像データを順次出力する出力手段と、
を備え、
前記伸長手段は、
複数の圧縮方式で圧縮された圧縮画像データを伸長する複数の伸長器を有し、前記対象圧縮画像データに応じた伸長器によって前記対象圧縮画像データを伸長する
ことを特徴とする画像処理装置。An image processing apparatus that outputs image data representing a composite image obtained by combining a plurality of input images in accordance with preset composite conditions,
Compressed image data input means for inputting a plurality of compressed image data representing the plurality of input images;
Decompression means for decompressing and outputting the target compressed image data;
Each time the decompression unit decompresses a predetermined amount of image data, the decompression that selects the target compressed image data from the plurality of compressed image data input by the compressed image data input unit based on the synthesis condition Control means;
Output means for sequentially outputting the image data output from the decompression means;
With
The extension means includes
An image processing apparatus comprising: a plurality of decompressors that decompress compressed image data compressed by a plurality of compression methods, and decompressing the target compressed image data by an decompressor corresponding to the target compressed image data .
前記伸長制御手段は、前記伸長手段から出力された画像データのデータ数に基づいて前記対象圧縮画像データを選択する
ことを特徴とする画像処理装置。The image processing apparatus according to claim 1.
The decompression control unit selects the target compressed image data based on the number of data of the image data output from the decompression unit.
前記伸長制御手段は、前記伸長手段に入力された圧縮画像データのデータ数に基づいて前記対象圧縮画像データを選択する
ことを特徴とする画像処理装置。The image processing apparatus according to claim 1.
The decompression control unit selects the target compressed image data based on the number of pieces of compressed image data input to the decompression unit.
前記圧縮画像データ入力手段により入力される前記複数の圧縮画像データは所定の識別データを包含し、
前記伸長制御手段は、前記伸長手段に入力された圧縮画像データ中の識別データに基づいて前記対象圧縮画像データを選択する
ことを特徴とする画像処理装置。The image processing apparatus according to claim 1.
The plurality of compressed image data input by the compressed image data input means includes predetermined identification data;
The decompression control unit selects the target compressed image data based on identification data in the compressed image data input to the decompression unit.
前記伸長制御手段によって選択された前記対象圧縮画像データは、対応する前記入力画像の所定ライン分の画像データを圧縮してなる
ことを特徴とする画像処理装置。The image processing apparatus according to any one of claims 1 to 4,
The target compressed image data selected by the decompression control means is obtained by compressing image data for a predetermined line of the corresponding input image.
前記伸長制御手段によって選択された前記対象圧縮画像データは、対応する前記入力画像の所定ブロック分の画像データを圧縮してなる
ことを特徴とする画像処理装置。The image processing apparatus according to any one of claims 1 to 4,
The target compressed image data selected by the decompression control means is obtained by compressing image data for a predetermined block of the corresponding input image.
前記出力手段は前記伸長手段により伸長された伸長画像データを一時的に格納するバッファを備え、該バッファに格納された画像データを前記合成画像のライン毎に出力する
ことを特徴とする画像処理装置。The image processing apparatus according to any one of claims 1 to 6 ,
The output means includes a buffer for temporarily storing the decompressed image data decompressed by the decompressing means, and outputs the image data stored in the buffer for each line of the composite image. .
前記複数の入力画像を表す複数の圧縮画像データを入力する入力手段と、
前記入力手段によって入力された前記複数の圧縮画像データを互いに独立に伸長する伸長手段と、
前記伸長手段による複数の伸長結果を前記合成画像を表す画像データとして選択的に出力する出力手段と、
前記出力手段によって出力された伸長結果が対応する入力画像のライン分だけ出力される毎に、前記出力手段が出力する伸長結果を前記合成条件に基づいて決定する選択手段と
を具備することを特徴とする画像処理装置。An image processing apparatus that outputs image data representing a composite image obtained by combining a plurality of input images in accordance with preset composite conditions,
Input means for inputting a plurality of compressed image data representing the plurality of input images;
Decompression means for independently decompressing the plurality of compressed image data input by the input means;
Output means for selectively outputting a plurality of decompression results by the decompression means as image data representing the composite image;
Selection means for determining the decompression result output by the output means based on the synthesis condition each time the decompression result output by the output means is output for the corresponding line of the input image. An image processing apparatus.
前記複数の入力画像を表す複数の圧縮画像データを前記画像処理装置が受取る第1のステップと、A first step in which the image processing apparatus receives a plurality of compressed image data representing the plurality of input images;
前記第1のステップにて受取った前記複数の圧縮画像データから前記合成条件に基づいて順次選択される対象圧縮画像データを前記画像処理装置が伸長して出力する第2のステップと、A second step in which the image processing device decompresses and outputs target compressed image data sequentially selected based on the synthesis condition from the plurality of compressed image data received in the first step;
を含み、Including
前記第2のステップにおいては、In the second step,
前記画像処理装置は、所定量の画像データを伸長する毎に前記合成条件に基づいて対象圧縮画像データの選択を切替えるとともに、前記複数の伸長器のうち、選択した対象圧縮画像データに応じた伸長器によってその対象圧縮画像データを伸長するThe image processing device switches the selection of target compressed image data based on the synthesis condition every time a predetermined amount of image data is expanded, and decompresses in accordance with the selected target compressed image data among the plurality of decompressors. Decompresses the target compressed image data
ことを特徴とする画像処理方法。An image processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03447098A JP3690102B2 (en) | 1998-02-17 | 1998-02-17 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03447098A JP3690102B2 (en) | 1998-02-17 | 1998-02-17 | Image processing apparatus and image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11234505A JPH11234505A (en) | 1999-08-27 |
| JP3690102B2 true JP3690102B2 (en) | 2005-08-31 |
Family
ID=12415149
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP03447098A Expired - Fee Related JP3690102B2 (en) | 1998-02-17 | 1998-02-17 | Image processing apparatus and image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3690102B2 (en) |
-
1998
- 1998-02-17 JP JP03447098A patent/JP3690102B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH11234505A (en) | 1999-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5917947A (en) | Image processing method and apparatus permitting use of PDL in compression memory | |
| JP3477042B2 (en) | Image reading device and image output device | |
| JP2018058295A (en) | Image processing apparatus, image processing method, and program | |
| JP3690102B2 (en) | Image processing apparatus and image processing method | |
| JP3772569B2 (en) | Image processing apparatus and image processing method | |
| JP4525726B2 (en) | Decoding device, decoding program, and image processing device | |
| JP3700429B2 (en) | Image processing apparatus, image processing method, and image output apparatus | |
| JPH08317225A (en) | Image data compression and expansion device | |
| JPH06334872A (en) | Picture processing unit | |
| US20080024831A1 (en) | Image processing device and image processing method | |
| JP2002125116A (en) | Image processing unit | |
| JP3702675B2 (en) | Image processing apparatus and image processing method | |
| JP3926030B2 (en) | Image forming apparatus | |
| JPH10208031A (en) | Image processor | |
| JP4906097B2 (en) | Memory interface unit and memory unit | |
| JP2003092674A (en) | Image processing apparatus and image processing method | |
| JP3232623B2 (en) | Image processing device | |
| JPH11168609A (en) | Scanner data processing system and record medium having scanner data processing program recorded therein | |
| JP3606014B2 (en) | Image processing device | |
| JPH07141388A (en) | Electronic file device | |
| JP2941574B2 (en) | High-speed extension processing device | |
| WO1996031974A1 (en) | Signal processor | |
| JPH10304205A (en) | Image processing apparatus and image processing method | |
| JPH06291987A (en) | Picture output device | |
| JP2917991B1 (en) | Video compression method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040922 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20041130 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050128 |
|
| 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: 20050524 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050606 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090624 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100624 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110624 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110624 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |