JP3818238B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP3818238B2 JP3818238B2 JP2002237950A JP2002237950A JP3818238B2 JP 3818238 B2 JP3818238 B2 JP 3818238B2 JP 2002237950 A JP2002237950 A JP 2002237950A JP 2002237950 A JP2002237950 A JP 2002237950A JP 3818238 B2 JP3818238 B2 JP 3818238B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- scanning direction
- pixels
- encoded
- main scanning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Input (AREA)
- Editing Of Facsimile Originals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
【0001】
【発明の利用分野】
この発明は画像処理装置と画像処理方法に関し、特に画像データの符号化と符号化した画像データの復号とに関する。
【0002】
【従来技術】
プリンタやファクシミリ、スキャナなどの画像処理装置では、画像データの圧縮を目的として、MH(モディファイド・ホフマン)、MR(モディファイド・READ)、MMR(モディファイド・モディファイド・READ)、JBIG(Joint・bi-level・image・experts・group)などによる符号化が行われている。ところで画像データの読取に用いるCCDセンサなどでは階調データが得られ、これを例えば2値化すると、階調データを2値化する過程で画素数を増すことが可能である。このため、符号化処理部や復号処理部の処理能力を越える画素数の画像データを、取り扱う必要が生じるようになった。そしてこのような場合に、符号化処理部や復号処理部の処理能力を増して対応するのでは、画像処理装置の高価格化を招くことになる。
【0003】
【発明の課題】
この発明の課題は、画像データの主走査方向の画素数が符号化手段で符号化可能な画素数を越える場合にも、符号化が可能な画像処理装置と画像処理方法を提供し、符号化のハードウェア等を変更せずに符号化可能な画素数を実質的に増すことにある(請求項1〜5)。
請求項2の発明での追加の課題は、回転して符号化した画像データの取り扱いを容易にすることにある。
請求項3の発明での追加の課題は、回転や分割により符号化した画像データを元の画像データに復元し、自機のプリンタでプリントできるようにすることにある。
【0004】
【用語法】
この明細書において、データとしての画像を意味する場合、画像と画像データは同義語とする。
【0005】
【発明の構成】
この発明は、画像読取手段で画像データを読み取り、符号化手段により画像データの主走査方向に沿って符号化するようにした画像処理装置において、画像読取手段で読み取った画像データを、ラスターフォーマットで記憶するためのメモリを設けると共に、前記画像データの主走査方向の解像度を副走査方向の解像度よりも高くし、かつ読み取った画像データの画素数を前記符号化手段の符号化可能画素数と比較し、主走査方向の画素数が符号化可能画素数以下の場合、主走査方向に沿って符号化手段で符号化すると共に、主走査方向の画素数が符号化可能画素数を越え、かつ副走査方向の画素数が符号化可能画素数を越えない場合、画像データを主走査方向と副走査方向とを入れ替えるように、前記メモリからの読み出しアドレスを制御することにより回転して、符号化手段で副走査方向に沿って符号化し、主走査方向の画素数が符号化可能画素数を越え、かつ副走査方向の画素数も符号化可能画素数を越える場合、画像データを複数に分割して符号化手段で符号化するようにした、ことを特徴とする。
【0006】
好ましくは、画像データを回転した際に画像データを回転した旨の情報を画像データに付し、画像データを分割した際に画像データを分割した旨の情報を画像データに付す。
特に好ましくは、符号化された画像データを復号するための復号手段とプリンタを設けると共に、復号した画像データに画像データを回転した旨の情報が付されている場合に、復号した画像データをその主走査方向と副走査方向とを入れ替えるように回転して、符号化前の画像データを復元し、復号した画像データに画像データを分割した旨の情報が付されている場合に、復号した画像データを合成して符号化前の画像データを復元し、復元した画像データを自機のプリンタでプリントする。
【0007】
ここで回転情報を付すとは、符号化した画像データのファイルに回転情報を記憶したファイルをリンクさせることや、符号化した画像データのヘッダやヘッダに相当する部分に回転情報を記憶させること、等を言う。
【0008】
この発明は、画像データを読み取り、画像データの主走査方向に沿って符号化するようにした画像処理方法において、画像読取手段で読み取った画像データを、ラスターフォーマットでメモリに記憶し、前記画像データの、主走査方向の解像度を副走査方向の解像度よりも高くすると共に、読み取った画像データの画素数を符号化可能画素数と比較し、主走査方向の画素数が符号化可能画素数以下の場合、主走査方向に沿って符号化し、主走査方向の画素数が符号化可能画素数を越え、かつ副走査方向の画素数が符号化可能画素数を越えない場合、画像データを主走査方向と副走査方向とを入れ替えるように、前記メモリからの読み出しアドレスを制御することにより回転して、副走査方向に沿って符号化し、主走査方向の画素数が符号化可能画素数を越え、かつ副走査方向の画素数も符号化可能画素数を越える場合、画像データを複数に分割して符号化する、ことを特徴とする。
【0009】
【発明の作用と効果】
この発明の画像処理装置では、画像データの主走査方向の画素数を符号化手段で符号化可能な画素数と比較し、符号化可能画素数を越えている場合、画像データを回転し、主走査方向と副走査方向とを入れ替えて符号化する。このため主走査方向の画素数が符号化可能画素数を越える場合でも符号化でき、符号化手段のハードウェア等を変更せずに、符号化が可能な画素数を実質的に増すことができる。
【0010】
さらに副走査方向にも符号化可能画素数を越えている場合、画像データを分割して符号化する。また画像の回転は、読み出しアドレスを制御することにより行うことができる。
【0011】
請求項2の発明では、画像データを回転させた旨の回転情報と、画像データを分割した旨の分割情報を発生させるので、符号化した画像データを利用する側では、画像データが回転していることや分割されていることを認識できる。
【0012】
請求項3の発明では、符号化した画像データを、回転情報や分割情報を用いて、復号した画像データを回転あるいは回転と合成して元の画像データに復元し、自機のプリンタでプリントできる。
【0013】
この発明の画像処理方法では、画像データの主走査方向の画素数を符号化手段で符号化可能な画素数と比較し、符号化可能画素数を越えていると、画像データを回転し、主走査方向と副走査方向とを入れ替えて符号化する。このため主走査方向の画素数が符号化可能画素数を越える場合でも符号化でき、このため符号化手段の能力を増さずに、符号化が可能な画素数を実質的に増すことができる。さらに副走査方向にも符号化可能画素数を越える場合、画像データを分割して符号化する。また画像の回転は、読み出しアドレスを制御することにより行うことができる。
【0014】
【実施例】
図1〜図5に実施例を示す。2は画像処理装置で、ファクシミリやプリンタ、コピー機、ネットワークスキャナなどの画像データの読取装置等として用いる。4はスキャナで、画像読取手段の例であり、CCDセンサなどを備え、例えばその出力は主走査方向並びに副走査方向とも解像度が600dpiで、256階調の階調型データとする。6は画像処理部で、解像度変換部を備え、スキャナ4の画像データに対してシェーディング補正やγ補正などを施し、かつ主走査方向600dpiの画像データを主走査方向2400dpiに変換し、これと同時に256階調から2値画像へ変換する。
【0015】
8はメモリコントローラで、ラスターフォーマットで画像データを記憶するイメージメモリ10を管理し、特にイメージメモリ10への書き込みアドレスと読み出しアドレスとを発生させ、後述のように画像データを90°回転して符号化する場合、画像データを回転した旨の回転情報を記憶したヘッダファイルを作成する。また画像データを回転した旨の情報が付されているヘッダファイルを受け取ると、対応する画像データを復号後に90°回転する。12は符号化処理部で、14は復号処理部で、実施例では画像処理の高速化のため、符号化処理部12と復号処理部14とを別体としたが、これらを一体として共通のハードウェアを用いても良い。
【0016】
符号化処理部12では、MH,MR,MMR,JBIGなどの符号化方式により画像データを符号化し、これによって画像データを圧縮する。復号処理部14ではMHやMR,MMR,JBIGなどにより符号化された画像データを復号し、元の画像データを復元する。16はプリンタ制御部で、主走査方向2400dpiの画像データを、2400dpi用のビデオデータに変換して出力すると共に、主走査方向2400dpi相当の解像度を持つプリンタ18を制御し、20はコマンドや符号化済みの画像データなどのためのシステムバスである。
【0017】
22はCPUで、24は操作部で、26は表示部である。表示部26は例えばLCDパネルなどを用い、操作部24は、LCDパネルに重ねて設けたタッチパネルや、スイッチなどを用いる。28は符号化済みメモリで、符号化処理部12で符号化した画像データを保存し、30はプログラムなどを記憶するためのROMで、32は様々な一時的データを保存するためのRAMである。画像データを回転して符号化する場合、メモリコントローラ8が作成したヘッダファイルは、符号化済みメモリ28で符号化した画像データと共に、もしくはRAM32で記憶する。34はモデム、36はNCU(網制御ユニット)で、これらにより電話回線網などとの接続を確立し、ファクシミリ通信を行う。
【0018】
上記の他にLANインターフェースなどを設けて、LANを介してパーソナルコンピュータなどのクライアントやメールサーバなどに接続しても良い。実施例では、画像データを回転して符号化し、符号化済みメモリ28に記憶した後に、復号処理部14で復号し、メモリコントローラ8を用いて再回転して、プリンタ18でプリントする例を示す。しかし回転して符号化した画像データをファクシミリ送信して、受信側で復号後に再回転しても良い。また文書管理装置などに読み取った画像データを記憶する際に、回転して符号化して記憶させても良い。
【0019】
図2に、読取原稿40をスキャナ4で読み取って、画像データ41を発生させた後、符号化済みメモリ28に画像データを保存するまでの処理を示す。読取原稿40をスキャナ4で読み取ると、例えば主走査方向と副走査方向のいずれもが解像度600dpiで256階調の画像データ41が得られる。画像処理部6は画像データに対してγ補正やシェーディング補正などの画像処理を施し、プリンタ18でのプリントやファクシミリ送信などの便宜のために、主走査方向を4倍に引き伸ばして2400dpiとし、これと同時に256階調の画像データを2値画像に変換する。なお副走査方向の解像度は600dpiのままである。上記のように解像度変換を施した画像データを、メモリコントローラ8で発生させた書き込みアドレスで一旦イメージメモリ10に記憶する。
【0020】
メモリコントローラ8は、例えば画像データをイメージメモリ10に書き込むためのアドレス生成を行う際に、主走査方向の画素数を把握する。そしてこの画素数が符号化処理部12での符号化能力を越える場合、画像データの主走査方向と副走査方向とを入れ替えるように読み出して、画像データを90°回転し、回転画像データ44とする。画像データの回転はメモリコントローラ8での読み出しアドレスの制御により行われ、主走査方向に沿って画素を順次読み出す代わりに、副走査方向に沿って画素を順次読み出し、1つの副走査ラインの読み出しが終了した後に、次の副走査ラインを読み出すようにすればよい。このようにすると、主走査方向の画素数が符号化処理部12の符号化可能画素数を越える場合でも、副走査方向の画素数が符号化可能画素数を越えなければ、同じ符号化処理部12で符号化できる。また副走査方向の解像度は600dpiで、主走査方向の解像度2400dpiの1/4である。
【0021】
副走査方向の画素数が符号化処理部12の符号化可能画素数を越える場合、回転した画像データを適宜に分割し、副走査方向の画素数が符号化処理部12の符号化可能画素数を越えないようにする。例えば図2では、回転画像データ44と分割画像データ45とに分割する例を示す。そして分割した画像データ毎にページを付与すると、元々1ページの読取原稿40を複数ページに分割することにより、符号化を実行できる。しかしながらこのような場合、画像データの回転を省略して、単に副走査方向に平行に、即ち主走査方向の途中で、画像データを複数ページに分割しても良い。メモリコントローラ8は画像データを回転や分割すると、ヘッダファイル46を作成して、画像データに回転や分割などの処理を施したことを記述する。
【0022】
ここで符号化処理部の能力について数値的な例を示す。符号化処理部12の符号化可能画素数は例えば7400画素程度で、A4用紙をその長辺方向を主走査方向として600dpiで読み取ると、主走査方向の画素数が最大で約7000画素、副走査方向の画素数が最大で約5000画素となる。主走査方向について画素数を4倍に増すと、符号化処理部12の符号化可能画素数7400画素を超過するため、主走査方向に沿った符号化は不可能になる。ここで画像データを90°回転すると、副走査方向の画素数5000画素が符号化処理部12の符号化可能画素数よりも小さいので、副走査方向に沿っての符号化が可能である。A3サイズの用紙を、その短辺方向を主走査方向として読み取り、主走査方向の解像度を600dpiから2400dpiに変換すると、主走査方向の画素数は最大で約28000画素、副走査方向の画素数は最大で約10000画素となる。このように、主走査方向の画素数(解像度変換後)及び副走査方向の画素数が共に符号化可能画素数を超過する場合、図2のように画像データを90°回転し、副走査方向の10000画素を5000画素ずつに分割して、2ページとして副走査方向に沿って符号化しても良い。あるいは画像データを回転せず、主走査方向の28000画素を7000画素ずつ4分割し、4ページの画像データとして主走査方向に沿って符号化しても良い。
【0023】
図3に実施例での符号化アルゴリズムの概要を示す。ステップ1で画像データを読み取り、ステップ2で1ページ分の画像データをイメージメモリに格納する。ステップ3で主走査方向の画素数が符号化可能画素数を越えているかどうか、言い換えると主走査方向の幅が最大幅を越えているかどうかをチェックし、越えていない場合は、回転も分割もせずにそのまま符号化する(ステップ4)。画像データの幅が最大幅を越えていることをステップ3で検出した場合、ステップ5で画像データの長さ(副走査方向の長さ)が、最大幅を越えているかどうかをチェックする。なお副走査方向の長さとは副走査方向の画素数のことであり、最大幅とは符号化可能な画素数のことである。副走査方向の長さが符号化可能な画素数を越えていない場合は、前記のようにして画像データを回転して、主走査方向と副走査方向を入れ替え符号化する(ステップ6)。そして画像データを回転したことを符号化済みデータを利用する側で検出できるように、ヘッダ情報として回転情報を付加する(ステップ7)。
【0024】
副走査方向の長さが最大幅を越えている場合、画像データを回転し、次いで分割して符号化する(ステップ8)。そしてヘッダ情報として画像データの回転と分割とを行ったことを付加する(ステップ9)。画像データの符号化が終了すると、符号化済みメモリに画像データを格納し、ヘッダ情報を付加している場合、該当するヘッダ情報を符号化済みメモリやRAMなどに記憶する(ステップ10)。
【0025】
図4,図5に、回転が施された画像データの復号時の処理を示す。図4に復号時のデータの流れを示すと、符号化済みメモリ28内のデータを復号処理部14で復号し、主走査方向2400dpiで副走査方向600dpiの画像データ50に復号する。この時、復号は副走査方向に沿って行い、復号済みのデータを一旦イメージメモリ10に格納する。メモリコントローラ8は、ヘッダファイル46を入力されて、画像データが回転している、あるいは回転と分割とが施されていることを認識し、それに伴ってイメージメモリ10からの読み出しアドレスを変換して、画像データを回転し、主走査方向が2400dpiで副走査方向が600dpiの再回転画像データ51をイメージメモリ10から出力させる。そしてこの画像データを例えばプリンタ18でプリントすると、読取原稿と相似なハードコピー52を得ることができる。
【0026】
図5に復号時の処理を示すと、ステップ20で画像データを符号化済みメモリから読み出し、ステップ21で復号する。ステップ22でヘッダ情報に回転が含まれていると、画像データの各ページごとに主走査方向と副走査方向を入れ替えるように90°回転する(ステップ23)。ステップ24でヘッダ情報に分割情報が含まれているかどうかをチェックし、分割情報が含まれている場合、ページごとに分割された画像データを所定ページ数分合成する(ステップ25)。これらによって符号化前の画像データを復元でき、ステップ26で画像データをプリンタへ供給し、ステップ27でプリントする。
【0027】
実施例では、プリンタの解像度に合わせて解像度変換を行い、画像データをプリンタでプリントする場合に画像回転を行ったが、画像データをファクシミリ送信する場合や、文書管理装置などに保存する場合にも同様の画像回転を施すことができる。これらの場合も、画像データを回転あるいは分割すると、その旨をヘッダファイルに保存し、画像データの取り扱いを容易にする。例えばファクシミリ送信の場合、NSS(非標準機能設定信号)を用いて、画像データを回転あるいは回転・分割した旨を受信側に通知し、受信側で画像データを復号した後に、回転あるいは回転と合成とを施せばよい。また文書管理装置などに画像データを保存する場合、回転や回転と分割とを施した旨のヘッダ情報を、画像データと同一ファイルに、あるいは画像データのファイルとリンクさせて保存すればよい。
【図面の簡単な説明】
【図1】 実施例の画像処理装置のブロック図
【図2】 実施例の画像処理装置での、画像データの符号化時の処理の流れを模式的に示す図
【図3】 実施例の画像処理装置での、画像データの符号化アルゴリズムを示すフローチャート
【図4】 実施例の画像処理装置での、復号時の処理の流れを模式的に示す図
【図5】 実施例の画像処理装置での、復号アルゴリズムを示すフローチャート
【符号の説明】
2 画像処理装置
4 スキャナ
6 画像処理部
8 メモリコントローラ
10 イメージメモリ
12 符号化処理部
14 復号処理部
16 プリンタ制御部
18 プリンタ
20 システムバス
22 CPU
24 操作部
26 表示部
28 符号化済みメモリ
30 ROM
32 RAM
34 モデム
36 NCU
40 読取原稿
41 画像データ
42 解像度変換済み画像データ
44,50 回転画像データ
45 分割画像データ
46 ヘッダファイル
51 再回転画像データ
52 ハードコピー[0001]
[Field of the Invention]
The present invention relates to an image processing apparatus and an image processing method, and more particularly to encoding of image data and decoding of encoded image data.
[0002]
[Prior art]
In image processing devices such as printers, facsimiles, and scanners, MH (Modified Hoffman), MR (Modified READ), MMR (Modified Modified READ), JBIG (Joint / bi-level) are used to compress image data.・ Encoding by image, experts, group) is performed. By the way, gradation data is obtained by a CCD sensor or the like used for reading image data. If this is binarized, for example, the number of pixels can be increased in the process of binarizing the gradation data. For this reason, it has become necessary to handle image data having a number of pixels exceeding the processing capability of the encoding processing unit and the decoding processing unit. In such a case, if the processing capability of the encoding processing unit and decoding processing unit is increased, the cost of the image processing apparatus will be increased.
[0003]
[Problems of the Invention]
An object of the present invention is to provide an image processing apparatus and an image processing method capable of encoding even when the number of pixels in the main scanning direction of image data exceeds the number of pixels that can be encoded by the encoding means . The number of pixels that can be encoded without changing the hardware or the like is substantially increased (claims 1 to 5).
An additional problem in the invention of
An additional problem in the invention of claim 3 is to restore the image data encoded by rotation or division to the original image data so that it can be printed by the printer of its own device.
[0004]
[Terminology]
In this specification, when an image as data is meant, image and image data are synonymous.
[0005]
[Structure of the invention]
According to the present invention, in an image processing apparatus in which image data is read by an image reading means and encoded along the main scanning direction of the image data by an encoding means, the image data read by the image reading means is in a raster format. A memory for storing is provided, the resolution of the image data in the main scanning direction is higher than the resolution in the sub-scanning direction, and the number of pixels of the read image data is compared with the number of pixels that can be encoded by the encoding means If the number of pixels in the main scanning direction is less than or equal to the number of pixels that can be encoded, encoding is performed along the main scanning direction by the encoding means, the number of pixels in the main scanning direction exceeds the number of pixels that can be encoded, and When the number of pixels in the scanning direction does not exceed the number of pixels that can be encoded, the readout address from the memory is controlled so that the main scanning direction and the sub-scanning direction of the image data are switched. And the encoding means performs encoding along the sub-scanning direction, the number of pixels in the main scanning direction exceeds the number of pixels that can be encoded, and the number of pixels in the sub-scanning direction also exceeds the number of pixels that can be encoded. In this case, the image data is divided into a plurality of parts and encoded by the encoding means .
[0006]
Preferably, information indicating that the image data has been rotated is attached to the image data when the image data is rotated, and information indicating that the image data has been divided is attached to the image data when the image data is divided.
Particularly preferably, a decoding means and a printer for decoding the encoded image data are provided, and if the decoded image data is accompanied by information indicating that the image data has been rotated, the decoded image data is Rotating the main scanning direction and the sub-scanning direction to rotate to restore the image data before encoding, and when the decoded image data includes information indicating that the image data is divided, the decoded image The data is synthesized to restore the image data before encoding, and the restored image data is printed by the printer of the own machine.
[0007]
Here, attaching rotation information means linking a file storing rotation information to an encoded image data file, storing rotation information in a header or a portion corresponding to the header of encoded image data, Say etc.
[0008]
In the image processing method of reading image data and encoding the image data along the main scanning direction, the image data read by the image reading means is stored in a memory in a raster format, and the image data The resolution in the main scanning direction is made higher than the resolution in the sub-scanning direction, the number of pixels of the read image data is compared with the number of pixels that can be encoded, and the number of pixels in the main scanning direction is equal to or less than the number of pixels that can be encoded. If the image data is encoded along the main scanning direction, the number of pixels in the main scanning direction exceeds the number of pixels that can be encoded, and the number of pixels in the sub scanning direction does not exceed the number of pixels that can be encoded. Rotating by controlling the read address from the memory so as to swap the sub-scanning direction and the sub-scanning direction, and encoding along the sub-scanning direction, the number of pixels in the main scanning direction can be encoded Beyond the number of pixels, and the number of pixels the sub-scanning direction may exceed encodable number of pixels, for encoding image data is divided into a plurality, it is characterized.
[0009]
[Operation and effect of the invention]
In the image processing apparatus of the present invention, the number of pixels in the main scanning direction of the image data is compared with the number of pixels that can be encoded by the encoding means, and if the number of pixels that can be encoded is exceeded, the image data is rotated, Encoding is performed by switching the scanning direction and the sub-scanning direction. For this reason, even if the number of pixels in the main scanning direction exceeds the number of pixels that can be encoded, encoding can be performed, and the number of pixels that can be encoded can be substantially increased without changing the hardware of the encoding means. .
[0010]
Further, if the number of pixels that can be encoded exceeds the sub-scanning direction, the image data is divided and encoded. The image can be rotated by controlling the read address.
[0011]
In the second aspect of the invention, rotation information indicating that the image data has been rotated and division information indicating that the image data has been divided are generated. Therefore, on the side using the encoded image data, the image data is rotated. Can be recognized as being divided .
[0012]
According to the third aspect of the present invention, the encoded image data is restored to the original image data by combining the decoded image data with the rotation or rotation using the rotation information or the division information, and can be printed by the printer of its own device. .
[0013]
In the image processing method of the present invention, the number of pixels in the main scanning direction of the image data is compared with the number of pixels that can be encoded by the encoding means, and if the number of pixels that can be encoded is exceeded, the image data is rotated, Encoding is performed by switching the scanning direction and the sub-scanning direction. Thus can encode even if the number of pixels in the main scanning direction exceeds the encodable number of pixels, without increasing the capacity of this order coding means, it is possible to substantially increase the number of pixels that can be coded . Further, when the number of pixels that can be encoded is exceeded in the sub-scanning direction, the image data is divided and encoded. The image can be rotated by controlling the read address.
[0014]
【Example】
1 to 5 show an embodiment. An
[0015]
A
[0016]
The
[0017]
22 is a CPU, 24 is an operation unit, and 26 is a display unit. The
[0018]
In addition to the above, a LAN interface or the like may be provided and connected to a client such as a personal computer or a mail server via the LAN. In the embodiment, the image data is rotated and encoded, stored in the encoded
[0019]
FIG. 2 shows a process from reading the read original 40 with the scanner 4 to generating the
[0020]
For example, when generating an address for writing image data in the
[0021]
When the number of pixels in the sub-scanning direction exceeds the number of pixels that can be encoded by the
[0022]
Here, a numerical example of the capability of the encoding processing unit is shown. The number of pixels that can be encoded by the
[0023]
FIG. 3 shows an outline of the encoding algorithm in the embodiment. In step 1, image data is read, and in
[0024]
If the length in the sub-scanning direction exceeds the maximum width, the image data is rotated and then divided and encoded (step 8). Then, the fact that the image data has been rotated and divided is added as header information (step 9). When the encoding of the image data is completed, the image data is stored in the encoded memory, and when the header information is added, the corresponding header information is stored in the encoded memory or RAM (step 10).
[0025]
4 and 5 show processing at the time of decoding the rotated image data. FIG. 4 shows a flow of data at the time of decoding. Data in the encoded
[0026]
FIG. 5 shows a process at the time of decoding. In
[0027]
In the embodiment, the resolution is converted in accordance with the resolution of the printer, and the image is rotated when the image data is printed by the printer. However, when the image data is transmitted by facsimile or stored in a document management apparatus or the like. Similar image rotation can be performed. In these cases, if the image data is rotated or divided, the fact is saved in the header file, and the handling of the image data is facilitated. For example, in the case of facsimile transmission, NSS (non-standard function setting signal) is used to notify the receiving side that the image data has been rotated or rotated / divided, and after the image data is decoded on the receiving side, it is combined with rotation or rotation. And give it. When image data is stored in a document management device or the like, the header information indicating that rotation, rotation, and division are performed may be stored in the same file as the image data or linked to the image data file.
[Brief description of the drawings]
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment. FIG. 2 is a diagram schematically illustrating a processing flow when encoding image data in the image processing apparatus according to the embodiment. FIG. 4 is a flowchart schematically showing a processing flow at the time of decoding in the image processing apparatus according to the embodiment. FIG. 5 is a flowchart illustrating an image data encoding algorithm in the processing apparatus. Flow chart showing the decoding algorithm
2 Image processing device 4 Scanner 6
24
32 RAM
34
40 scanned original 41
Claims (4)
画像読取手段で読み取った画像データを、ラスターフォーマットで記憶するためのメモリを設けると共に、
前記画像データの主走査方向の解像度を副走査方向の解像度よりも高くし、かつ読み取った画像データの画素数を前記符号化手段の符号化可能画素数と比較し、
主走査方向の画素数が符号化可能画素数以下の場合、主走査方向に沿って符号化手段で符号化すると共に、
主走査方向の画素数が符号化可能画素数を越え、かつ副走査方向の画素数が符号化可能画素数を越えない場合、画像データを主走査方向と副走査方向とを入れ替えるように、前記メモリからの読み出しアドレスを制御することにより回転して、符号化手段で副走査方向に沿って符号化し、
主走査方向の画素数が符号化可能画素数を越え、かつ副走査方向の画素数も符号化可能画素数を越える場合、画像データを複数に分割して符号化手段で符号化するようにした、ことを特徴とする、画像処理装置。In an image processing apparatus in which image data is read by an image reading unit and encoded along the main scanning direction of the image data by an encoding unit,
A memory is provided for storing the image data read by the image reading means in a raster format,
The resolution of the image data in the main scanning direction is higher than the resolution in the sub-scanning direction, and the number of pixels of the read image data is compared with the number of pixels that can be encoded by the encoding means;
When the number of pixels in the main scanning direction is equal to or less than the number of pixels that can be encoded, encoding is performed by the encoding means along the main scanning direction,
When the number of pixels in the main scanning direction exceeds the number of pixels that can be encoded and the number of pixels in the sub scanning direction does not exceed the number of pixels that can be encoded, the image data is switched between the main scanning direction and the sub scanning direction. Rotating by controlling the read address from the memory, encoding along the sub-scanning direction by the encoding means,
When the number of pixels in the main scanning direction exceeds the number of pixels that can be encoded and the number of pixels in the sub-scanning direction also exceeds the number of pixels that can be encoded, the image data is divided into multiple parts and encoded by the encoding means. An image processing apparatus characterized by that.
復号した画像データに画像データを回転した旨の情報が付されている場合に、復号した画像データをその主走査方向と副走査方向とを入れ替えるように回転して、符号化前の画像データを復元し、
復号した画像データに画像データを分割した旨の情報が付されている場合に、復号した画像データを合成して符号化前の画像データを復元し、
復元した画像データを自機のプリンタでプリントするようにしたことを特徴とする、請求項2の画像処理装置。 A decoding unit and a printer for decoding the encoded image data are provided, and
When information indicating that the image data is rotated is attached to the decoded image data, the decoded image data is rotated so that the main scanning direction and the sub-scanning direction are switched, and the image data before encoding is changed. Restore,
When the information indicating that the image data is divided is attached to the decoded image data, the decoded image data is synthesized to restore the image data before encoding,
3. The image processing apparatus according to claim 2, wherein the restored image data is printed by a printer of the own apparatus.
画像読取手段で読み取った画像データを、ラスターフォーマットでメモリに記憶し、
前記画像データの、主走査方向の解像度を副走査方向の解像度よりも高くすると共に、読み取った画像データの画素数を符号化可能画素数と比較し、
主走査方向の画素数が符号化可能画素数以下の場合、主走査方向に沿って符号化し、
主走査方向の画素数が符号化可能画素数を越え、かつ副走査方向の画素数が符号化可能画素数を越えない場合、画像データを主走査方向と副走査方向とを入れ替えるように、前記メモリからの読み出しアドレスを制御することにより回転して、副走査方向に沿って符号化し、
主走査方向の画素数が符号化可能画素数を越え、かつ副走査方向の画素数も符号化可能画素数を越える場合、画像データを複数に分割して符号化する、ことを特徴とする、画像処理方法。In an image processing method for reading image data and encoding the image data along the main scanning direction of the image data,
The image data read by the image reading means is stored in a memory in a raster format,
The resolution of the image data in the main scanning direction is made higher than the resolution in the sub-scanning direction, and the number of pixels of the read image data is compared with the number of pixels that can be encoded,
If the number of pixels in the main scanning direction is less than or equal to the number of pixels that can be encoded, encoding along the main scanning direction,
When the number of pixels in the main scanning direction exceeds the number of pixels that can be encoded and the number of pixels in the sub scanning direction does not exceed the number of pixels that can be encoded, the image data is switched between the main scanning direction and the sub scanning direction. Rotate by controlling the read address from the memory, encode along the sub-scanning direction,
When the number of pixels in the main scanning direction exceeds the number of pixels that can be encoded and the number of pixels in the sub-scanning direction also exceeds the number of pixels that can be encoded, the image data is divided into a plurality of encoded data , Image processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002237950A JP3818238B2 (en) | 2002-08-19 | 2002-08-19 | Image processing apparatus and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002237950A JP3818238B2 (en) | 2002-08-19 | 2002-08-19 | Image processing apparatus and image processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004080386A JP2004080386A (en) | 2004-03-11 |
JP3818238B2 true JP3818238B2 (en) | 2006-09-06 |
Family
ID=32021507
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002237950A Expired - Fee Related JP3818238B2 (en) | 2002-08-19 | 2002-08-19 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3818238B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5635551B2 (en) | 2012-03-29 | 2014-12-03 | 京セラドキュメントソリューションズ株式会社 | Image processing apparatus and image forming apparatus |
-
2002
- 2002-08-19 JP JP2002237950A patent/JP3818238B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004080386A (en) | 2004-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7933049B2 (en) | Multifunction printer and image processing method | |
US20050219594A1 (en) | Apparatus and method for generating scanned data in a standard format | |
JP2004080520A (en) | Image processing apparatus, image reading apparatus and image forming apparatus | |
US20060215205A1 (en) | Image processing apparatus, image processing method and image processing program | |
JP5232845B2 (en) | Image processing apparatus and image forming apparatus using the same | |
JPH07264417A (en) | Image coding method | |
JP2001332976A (en) | Device and method for processing image | |
JP3818238B2 (en) | Image processing apparatus and image processing method | |
JPH05324546A (en) | Information processing system | |
JP3818239B2 (en) | Image processing apparatus and image processing method | |
US7933039B2 (en) | Apparatus, method, and computer program product for forming image | |
JP2004328571A (en) | Image processing apparatus | |
JP2003234866A (en) | Method and system for transmitting image and image data matching device | |
JP3734082B2 (en) | Image processing apparatus and image data storage method of image processing apparatus | |
US7450775B2 (en) | Image processing apparatus for efficient storage of variable block length data | |
JP2002158855A (en) | Communicating method for picture data, transmission device and reception device | |
JP2000069298A (en) | Facsimile equipment | |
JP2004080627A (en) | Image forming device | |
JP3486453B2 (en) | Digital copying apparatus and print processing method in the apparatus | |
JP3060450U (en) | Fax reception data processor | |
JP3554316B2 (en) | Image reading apparatus and control method thereof | |
JP2001136521A (en) | Image compression device, image expansion device, image reader, image-forming device, and network scanner system | |
JP2004040609A (en) | Data communication apparatus | |
JP2004015672A (en) | Facsimile device | |
JP2002125079A (en) | Fax device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040419 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060228 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060302 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060425 |
|
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: 20060523 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060605 |
|
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: 20090623 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120623 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130623 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |