JP2007235851A - Image processing device, image processing method, program, and recording medium - Google Patents

Image processing device, image processing method, program, and recording medium Download PDF

Info

Publication number
JP2007235851A
JP2007235851A JP2006057974A JP2006057974A JP2007235851A JP 2007235851 A JP2007235851 A JP 2007235851A JP 2006057974 A JP2006057974 A JP 2006057974A JP 2006057974 A JP2006057974 A JP 2006057974A JP 2007235851 A JP2007235851 A JP 2007235851A
Authority
JP
Japan
Prior art keywords
image data
image processing
compression
compressed
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006057974A
Other languages
Japanese (ja)
Inventor
Hiroyuki Nagano
紘之 長野
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 JP2006057974A priority Critical patent/JP2007235851A/en
Publication of JP2007235851A publication Critical patent/JP2007235851A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing device, an image processing method, a program, and a recording medium which divide an image per predetermined line and compress the image. <P>SOLUTION: In order to solve the problem, the image processing device is provided with: a division means dividing image data into a plurality of data per line; a compression means compressing the image data divided by the division means per predetermined line number; and an output means outputting compressed image data compressed by the compression means. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像を圧縮する手段を備えた画像処理装置、画像処理方法、プログラムおよび記録媒体に関する。   The present invention relates to an image processing apparatus, an image processing method, a program, and a recording medium provided with a means for compressing an image.

巨大な画像を好適に表示し、閲覧を可能とするために、画像に対し、解像度変換処理および分割処理を行い、分割処理による分割数を、画像表示領域のサイズおよび解像度変換処理後の解像度に応じて制御する方法が特許文献1に記載されている。
特開2005−92110号公報
In order to display a huge image appropriately and enable viewing, the image is subjected to resolution conversion processing and division processing, and the number of divisions by the division processing is changed to the size of the image display area and the resolution after the resolution conversion processing. Japanese Patent Application Laid-Open No. H10-228561 describes a method of controlling in response.
JP-A-2005-92110

しかしながら、上述した背景技術には以下の問題がある。   However, the background art described above has the following problems.

例えば、画像処理装置を備える画像形成装置において、画像読取り装置、例えばスキャナにより長尺画像を読み取る場合、該長尺画像に対応する画像データは、途切れることなくスキャナから入力されてくる。そのため、画像を分割しJPEG符号などを作成する際にも、スキャナからの入力をとめることはできない問題がある。   For example, in an image forming apparatus including an image processing apparatus, when a long image is read by an image reading device, for example, a scanner, image data corresponding to the long image is input from the scanner without interruption. For this reason, there is a problem that the input from the scanner cannot be stopped even when an image is divided to create a JPEG code or the like.

この場合、画像処理装置は、分割画像ブロック単位で、独立した符号を生成しなければならない。したがって、JPEG符号器は、分割画像ブロックの切れ目で、内部のデータを全て出力し、初期状態に復帰しておかなければならない問題がある。これは、JPEGの符号化アルゴリズムに依存するためである。   In this case, the image processing apparatus must generate an independent code for each divided image block. Therefore, the JPEG encoder has a problem that it must output all the internal data at the break of the divided image block and return to the initial state. This is because it depends on the JPEG encoding algorithm.

そこで本発明の目的は、所定のライン毎に画像を分割し、圧縮することができる画像処理装置、画像処理方法、プログラムおよび記録媒体を提供することにある。   An object of the present invention is to provide an image processing apparatus, an image processing method, a program, and a recording medium that can divide and compress an image for each predetermined line.

上記課題を解決するため、本発明の画像処理装置は、画像データを、ラインを単位として複数に分割する分割手段と、前記分割手段によって分割された画像データを所定のライン数毎に圧縮する圧縮手段と、前記圧縮手段によって圧縮された圧縮画像データを出力する出力手段とを備えることを特徴の1つとする。   In order to solve the above problems, an image processing apparatus according to the present invention includes a dividing unit that divides image data into a plurality of lines, and a compression that compresses the image data divided by the dividing unit for each predetermined number of lines. And an output unit for outputting the compressed image data compressed by the compression unit.

このように構成することにより、読み取られた原稿の画像データを、ラインを単位として複数に分割し、分割された画像データを所定のライン数毎に圧縮し、圧縮された画像データを出力することができる。   By configuring in this way, the image data of the read original is divided into a plurality of lines as a unit, the divided image data is compressed for each predetermined number of lines, and the compressed image data is output. Can do.

また、本発明の画像処理方法は、原稿を読み取り、画像データを生成する読み取りステップと、前記画像データを、ラインを単位として複数に分割する分割ステップと、分割された画像データを所定のライン数毎に圧縮する圧縮ステップと、圧縮された圧縮画像データを記憶する圧縮画像データ記憶ステップとを有することを特徴の1つとする。   The image processing method of the present invention includes a reading step of reading a document and generating image data, a dividing step of dividing the image data into a plurality of lines as a unit, and the divided image data for a predetermined number of lines. One of the features is that it has a compression step for compressing each time and a compressed image data storage step for storing the compressed image data that has been compressed.

このようにすることにより、読み取られた原稿の画像データを、ラインを単位として複数に分割し、分割された画像データを所定のライン数毎に圧縮し、圧縮された画像データを記憶することができる。   By doing so, it is possible to divide the read image data of the original into a plurality of lines, compress the divided image data for each predetermined number of lines, and store the compressed image data. it can.

また、本発明のプログラムは、上述した画像処理方法をコンピュータに実行させるためのプログラムである。   The program of the present invention is a program for causing a computer to execute the above-described image processing method.

また、本発明の記録媒体は、上述したプログラムを記録したコンピュータ読取可能な記録媒体である。   The recording medium of the present invention is a computer-readable recording medium that records the above-described program.

本発明の実施例によれば、所定のライン毎に画像を分割し、圧縮することができる画像処理装置、画像処理方法、プログラムおよび記録媒体を実現できる。   According to the embodiments of the present invention, it is possible to realize an image processing apparatus, an image processing method, a program, and a recording medium that can divide and compress an image for each predetermined line.

次に、本発明を実施するための最良の形態を、以下の実施例に基づき図面を参照しつつ説明する。
なお、実施例を説明するための全図において、同一機能を有するものは同一符号を用い、繰り返しの説明は省略する。
Next, the best mode for carrying out the present invention will be described based on the following embodiments with reference to the drawings.
In all the drawings for explaining the embodiments, the same reference numerals are used for those having the same function, and repeated explanation is omitted.

本発明の実施例にかかる画像処理装置について説明する。   An image processing apparatus according to an embodiment of the present invention will be described.

本実施例にかかる画像処理装置100は、例えば画像形成装置に備えられ、画像読取り装置、例えばスキャナにより読み取られた原稿の画像データを、ラインを単位として複数に分割し、分割された画像データを所定のライン数毎に圧縮し、圧縮された画像データを記憶する。   An image processing apparatus 100 according to the present embodiment is provided in, for example, an image forming apparatus, and divides image data of a document read by an image reading apparatus, for example, a scanner into a plurality of lines in units of lines. Compression is performed for each predetermined number of lines, and the compressed image data is stored.

本実施例においては、一例として、副走査方向8ラインの画像を4ラインと4ラインに2分割する場合について説明する。この場合、図1に示すように、副走査方向8ラインの画像が2分割され、それぞれ符号化が行われる。例えば、4ラインで1つの画像とみなし、それぞれJPEG符号化が行われ、2つのJPEGファイル(JPEG(1)および(2))が作成される。   In the present embodiment, as an example, a case where an image of 8 lines in the sub scanning direction is divided into 4 lines and 4 lines will be described. In this case, as shown in FIG. 1, an image of 8 lines in the sub-scanning direction is divided into two and encoded respectively. For example, four lines are regarded as one image, JPEG encoding is performed, and two JPEG files (JPEG (1) and (2)) are created.

次に、本実施例にかかる画像処理装置について、図2を参照して説明する。   Next, the image processing apparatus according to the present embodiment will be described with reference to FIG.

画像処理装置100は、スキャナI/F102と、スキャナI/F102の出力信号が入力される分割手段としての圧縮制御装置104と、圧縮制御装置104の出力信号が入力される圧縮手段および出力手段としてのJPEG符号化装置106とを備える。JPEG符号化装置106の出力信号の一部は圧縮制御装置104に入力される。   The image processing apparatus 100 includes a scanner I / F 102, a compression control device 104 as a dividing unit to which an output signal of the scanner I / F 102 is input, and a compression unit and an output unit to which an output signal of the compression control device 104 is input. JPEG encoding device 106. A part of the output signal of the JPEG encoding device 106 is input to the compression control device 104.

本実施例においては、一例としてスキャナにより原稿画像の読取りが行われる場合について説明するが、他の画像読取り装置を適用するようにしてもよい。また、本実施例においては、一例としてJPEGにより圧縮を行う場合について説明するが、他の圧縮方式を適用するようにしてもよい。   In the present embodiment, a case where a document image is read by a scanner will be described as an example, but other image reading devices may be applied. In this embodiment, a case where compression is performed by JPEG will be described as an example, but other compression methods may be applied.

スキャナI/F102は、例えば読取り手段としてのスキャナと、該スキャナと圧縮制御装置104との情報のやりとりを行うI/Fにより構成される。スキャナI/F102は、スキャナにより原稿画像、例えば長尺原稿を読み取り、画像データを生成し、該画像データを後段、すなわち圧縮制御装置104へ出力する。スキャナI/F102は、1ページ(副走査方向)の有効期間信号を示すPage_enable_0、1ライン(主走査方向)の有効期間信号を示すLine_enable_0および画像データを示すdata_0を圧縮制御装置104に入力する。   The scanner I / F 102 includes, for example, a scanner as a reading unit and an I / F that exchanges information between the scanner and the compression control device 104. The scanner I / F 102 reads a document image, for example, a long document by the scanner, generates image data, and outputs the image data to the subsequent stage, that is, the compression control device 104. The scanner I / F 102 inputs Page_enable_0 indicating an effective period signal of one page (sub-scanning direction), Line_enable_0 indicating an effective period signal of one line (main scanning direction), and data_0 indicating image data to the compression controller 104.

圧縮制御装置104は、スキャナI/F102から画像データを受け取り、該画像データを、ラインを単位として複数に分割し、後段、すなわちJPEG符号化装置106へ出力する。例えば、圧縮制御装置104は、原稿の副走査長が所定の値より大きい場合に、画像データの分割を行う。圧縮制御装置104は、1ページ(副走査方向)の有効期間信号を示すPage_enable_1、1ライン(主走査方向)の有効期間信号を示すLine_enable_1および画像データを示すdata_1をJPEG符号化装置106に入力する。   The compression control device 104 receives the image data from the scanner I / F 102, divides the image data into a plurality of units in units of lines, and outputs them to the subsequent stage, that is, the JPEG encoding device 106. For example, the compression control device 104 divides the image data when the sub-scanning length of the document is larger than a predetermined value. The compression control device 104 inputs Page_enable_1 indicating the effective period signal of one page (sub-scanning direction), Line_enable_1 indicating the effective period signal of one line (main scanning direction), and data_1 indicating the image data to the JPEG encoding device 106. .

圧縮制御装置104は、設定された所定のライン数でPage_enable_1をネゲート、すなわち無効な状態にする。また、圧縮制御装置104は、Page_enable_1をネゲートした後にもスキャナI/F102から画像データが入力される場合、再度Page_enable_1をアサート、すなわち有効な状態にする。この制御をPage_enable_0がネゲートされるまで継続する。その結果、JPEG符号化装置106に、設定された所定のライン数毎に画像データが入力される。この所定のライン数は、ユーザにより設定される。   The compression control device 104 negates Page_enable_1 with the set predetermined number of lines, that is, makes it invalid. Further, when image data is input from the scanner I / F 102 even after negating Page_enable_1, the compression control device 104 asserts Page_enable_1 again, that is, makes it valid. This control is continued until Page_enable_0 is negated. As a result, image data is input to the JPEG encoding device 106 for each predetermined number of lines set. This predetermined number of lines is set by the user.

本実施例においては、副走査方向8ラインの画像が4ラインと4ラインに2分割される。このため、圧縮制御装置104は、4ライン目のデータを出力した後、Page_enable_1を一旦ネゲートし、再度Page_enable_1をアサートする。   In this embodiment, an image of 8 lines in the sub scanning direction is divided into 4 lines and 4 lines. For this reason, after outputting the data of the fourth line, the compression control device 104 once negates Page_enable_1 and asserts Page_enable_1 again.

また、後述するJPEG符号化装置106から出力されるPage_enable_2信号に基づいて、JPEG符号化装置106にretを出力する。その結果、JPEG符号化装置106は、画像データが入力される前の状態となる。   Further, ret is output to the JPEG encoding device 106 based on a Page_enable_2 signal output from the JPEG encoding device 106 described later. As a result, the JPEG encoding device 106 is in a state before image data is input.

JPEG符号化装置106は、分割された画像データを所定のライン数毎に圧縮、符号化する。JPEG符号化装置106には、設定された所定のライン数毎に画像データが入力される。JPEG符号化装置106は、この所定のライン数毎に圧縮を行う。したがって、8ラインの画像データを4ライン毎に圧縮する場合は、1つの原稿の画像データを圧縮した結果、2つの圧縮画像データが生成される。   The JPEG encoding device 106 compresses and encodes the divided image data for each predetermined number of lines. Image data is input to the JPEG encoding device 106 for each predetermined number of lines set. The JPEG encoding device 106 performs compression for each predetermined number of lines. Therefore, when compressing the image data of 8 lines every 4 lines, two compressed image data are generated as a result of compressing the image data of one original.

JPEG符号化装置106は、1ページ(副走査方向)の有効期間信号を示すPage_enable_2、JPEG符号の有効期間信号を示すCode_enable_0およびJPEG符号データを示すdata_2を出力する。このPage_enable_2信号は、Page_enable_1に応じて制御される。例えば、JPEG符号化装置106は、Page_enable_1がアサートされたことを検出した場合Page_enable_2をアサートし、Page_enable_1がネゲートされたことを検出した場合Page_enable_2をネゲートする。したがって、Page_enable_2は、設定された所定のライン数の画像データが入力される毎に一旦ネゲートされ、再度アサートされる。この制御は、Page_enable_0がネゲートされるまで継続される。   The JPEG encoding device 106 outputs Page_enable_2 indicating the effective period signal of one page (sub-scanning direction), Code_enable_0 indicating the effective period signal of the JPEG code, and data_2 indicating the JPEG code data. This Page_enable_2 signal is controlled according to Page_enable_1. For example, the JPEG encoding device 106 asserts Page_enable_2 when detecting that Page_enable_1 is asserted, and negates Page_enable_2 when detecting that Page_enable_1 is negated. Therefore, Page_enable_2 is once negated and re-asserted every time the set number of lines of image data is input. This control is continued until Page_enable_0 is negated.

また、圧縮制御装置104により入力されたrst、すなわちリセット信号により、直前に圧縮したラインに対応する圧縮画像データがリセット、例えば消去される。JPEG符号化装置106は、直前に圧縮した圧縮画像データを格納するメモリを有し、当該メモリに記憶された圧縮画像データを参照して圧縮を行う。したがって、設定された所定のラインに対応する圧縮画像データが生成された後、新たに圧縮画像データを生成する場合には、メモリに記憶された圧縮画像データをリセットする必要がある。このように、設定された所定のライン毎に参照ラインをリセットすることによって、JPEGによる圧縮方式を適用した場合の上述した不具合を防止することができる。すなわち、分割画像ブロックの切れ目で、JPEG符号器は内部のデータを全て出力し、初期状態に復帰することが可能となり、分割画像ブロック単位で、独立した符号を生成することが可能となる。   Also, the compressed image data corresponding to the line compressed immediately before is reset, for example, erased, by the rst input by the compression controller 104, that is, the reset signal. The JPEG encoding device 106 has a memory for storing the compressed image data compressed immediately before, and performs compression by referring to the compressed image data stored in the memory. Accordingly, when new compressed image data is generated after the compressed image data corresponding to the set predetermined line is generated, it is necessary to reset the compressed image data stored in the memory. In this way, by resetting the reference line for each set predetermined line, it is possible to prevent the above-described problems when the JPEG compression method is applied. That is, the JPEG encoder can output all the internal data at the break of the divided image block and return to the initial state, and can generate an independent code for each divided image block.

JPEG符号化装置106により所定のライン数毎に出力された圧縮、符号化された圧縮画像データ、すなわちdata_2は、圧縮画像データ記憶手段としての記憶装置に記憶される。   The compressed and encoded compressed image data output for each predetermined number of lines by the JPEG encoding device 106, that is, data_2, is stored in a storage device as compressed image data storage means.

このように、本実施例にかかる画像処理装置では、途切れることなく、画像読み取り装置、例えばスキャナから入力されてくる長尺画像を止めることなく、画像を分割しJPEG符号などを作成することが可能となる。   As described above, in the image processing apparatus according to the present embodiment, it is possible to divide an image and create a JPEG code or the like without stopping a long image input from an image reading apparatus, for example, a scanner, without interruption. It becomes.

ここで、本実施例にかかる画像処理装置は組み込み機器で実現することができる。この組み込み機器は、プログラムにしたがって演算処理を行うCPUと、ROM(リードオンリメモリ)と、RAM(ランダムアクセスメモリ)と、フレキシブルディスク装置等の補助記憶装置と、ハードディスク装置等の大容量の外部記憶装置を備える。   Here, the image processing apparatus according to the present embodiment can be realized by an embedded device. This embedded device includes a CPU that performs arithmetic processing according to a program, a ROM (Read Only Memory), a RAM (Random Access Memory), an auxiliary storage device such as a flexible disk device, and a large capacity external storage such as a hard disk device. Equipment.

コンピュータを画像処理装置として機能させるためのプログラムは、例えば、フレキシブルディスク、CD−ROM、メモリカード等の記録媒体に記録された状態で提供される。この記録媒体をコンピュータの補助記憶装置に挿入すると、記録媒体に記録されたプログラムが読み取られる。そして、CPUは、読み込んだプログラムをRAMあるいは記憶装置に書き込み、このプログラムにしたがって処理を実行する。   A program for causing a computer to function as an image processing apparatus is provided in a state of being recorded on a recording medium such as a flexible disk, a CD-ROM, or a memory card. When this recording medium is inserted into an auxiliary storage device of a computer, a program recorded on the recording medium is read. Then, the CPU writes the read program into the RAM or storage device, and executes processing according to this program.

この場合、プログラムは、コンピュータに、原稿を読み取り、画像データを生成する読み取りステップと、画像データを、ラインを単位として複数に分割する分割ステップと、分割された画像データを所定のライン数毎に圧縮する圧縮ステップと、圧縮された圧縮画像データを記憶する圧縮画像データ記憶ステップとを実行させる。   In this case, the program causes the computer to read a document and generate image data, a division step to divide the image data into a plurality of lines, and the divided image data for each predetermined number of lines. A compression step for compression and a compressed image data storage step for storing compressed compressed image data are executed.

さらに、プログラムは、コンピュータに、分割ステップにおいて、読み取りステップにおいて読み取る原稿の副走査長が所定の値より大きい場合、前記画像データの分割を行うことを実行させるようにしてもよい。   Further, the program may cause the computer to execute the division of the image data when the sub-scanning length of the document read in the reading step is larger than a predetermined value in the dividing step.

さらに、プログラムは、コンピュータに、圧縮ステップにおいて、直前に圧縮したラインに対応する圧縮画像データをメモリに格納し、当該メモリを参照して圧縮処理を実行させるようにしてもよい。   Further, the program may cause the computer to store the compressed image data corresponding to the line compressed immediately before in the compression step, and execute the compression process with reference to the memory.

さらに、プログラムは、コンピュータに、圧縮ステップにおいて、分割された画像データの圧縮処理後、メモリをリセットすることを実行させるようにしてもよい。   Further, the program may cause the computer to execute resetting of the memory after the compression processing of the divided image data in the compression step.

さらに、プログラムは、コンピュータに、圧縮ステップによって圧縮する単位となるライン数を設定する圧縮単位設定ステップを実行させ、圧縮ステップにおいて、設定されたライン数にしたがって、画像データを圧縮することを実行させるようにしてもよい。   Further, the program causes the computer to execute a compression unit setting step for setting the number of lines as a unit to be compressed in the compression step, and to execute the compression in the compression step according to the set number of lines. You may do it.

次に、本実施例にかかる画像処理装置100の動作について、図3を参照して説明する。   Next, the operation of the image processing apparatus 100 according to the present embodiment will be described with reference to FIG.

図3は、データ転送時のそれぞれの信号の動作を示すタイミングチャートである。   FIG. 3 is a timing chart showing the operation of each signal during data transfer.

スキャナI/F102により、原稿、例えば長尺原稿が読み取られ、画像データが生成される。Page_enable_0、Line_enable_0がアサートし、1ライン目の画像データがスキャナI/F102から圧縮制御装置104に入力される(data_0の(1))
圧縮制御装置104は、入力された画像データを、ラインを単位として複数に分割する。本実施例においては、圧縮制御装置104は、入力された画像データを4ライン毎に分割する。圧縮制御装置104は、Page_enable_1、Line_enable_1をアサートし、JPEG符号化装置106に1ライン目のデータを出力する(data_1の(1))。
The scanner I / F 102 reads a document, for example, a long document, and generates image data. Page_enable_0 and Line_enable_0 are asserted, and the image data of the first line is input from the scanner I / F 102 to the compression controller 104 ((1) of data_0).
The compression control device 104 divides the input image data into a plurality of lines in units of lines. In the present embodiment, the compression controller 104 divides the input image data every four lines. The compression control device 104 asserts Page_enable_1 and Line_enable_1, and outputs the first line data to the JPEG encoding device 106 (data_1 (1)).

同様に、2ライン目から4ライン目までの画像データがスキャナI/F102から圧縮制御装置104、圧縮制御装置104からJPEG符号化装置106に入力される(data_0の(2)から(4)、data_1の(2)から(4))。   Similarly, the image data from the second line to the fourth line is input from the scanner I / F 102 to the compression control device 104 and from the compression control device 104 to the JPEG encoding device 106 (from (2) to (4) of data_0, (2) to (4) of data_1.

4ラインで分割する設定がなされているので、圧縮制御装置104は4ライン目のデータを出力した後、Page_enable_1をネゲートする。この場合、スキャナI/F102からのPage_enable_0はアサートされたままである。   Since it is set to divide by 4 lines, the compression controller 104 negates Page_enable_1 after outputting the data of the 4th line. In this case, Page_enable_0 from the scanner I / F 102 remains asserted.

JPEG符号化装置106は、4ライン目までの画像データの符号化が終了した時点で、圧縮制御装置104から入力されるPage_enable_1がネゲートされているので後段に出力しているPage_enable_2をネゲートする。   The JPEG encoding device 106 negates Page_enable_2 output to the subsequent stage because Page_enable_1 input from the compression control device 104 is negated when encoding of the image data up to the fourth line is completed.

Page_enable_2は、圧縮制御装置104にフィードバックされる。圧縮制御装置104は、Page_enable_2に基づいて、JPEG符号化装置106にrst信号を入力する。すなわち、圧縮制御装置104は、Page_enable_2がネゲートされたのをみて、JPEG符号化装置106にrstをかける。その結果、JPEG符号化装置106は、画像データが入力される前の状態となり、メモリに記憶された圧縮画像データがリセットされる。   Page_enable_2 is fed back to the compression controller 104. The compression control device 104 inputs the rst signal to the JPEG encoding device 106 based on Page_enable_2. That is, the compression control apparatus 104 applies rst to the JPEG encoding apparatus 106 when the Page_enable_2 is negated. As a result, the JPEG encoding device 106 is in a state before image data is input, and the compressed image data stored in the memory is reset.

JPEG符号化装置106は、圧縮制御装置104から入力された画像データをJPEG符号データに符号化し、JPEGデータを後段へ出力する。例えば、JPEG符号化装置106は、code_enable_0をアサートし、圧縮データを記憶装置に出力する(data_2のJPEG(1))。   The JPEG encoding device 106 encodes the image data input from the compression control device 104 into JPEG code data, and outputs the JPEG data to the subsequent stage. For example, the JPEG encoding device 106 asserts code_enable_0 and outputs the compressed data to the storage device (JPEG (1) of data_2).

5ライン目のデータがスキャナI/F102から圧縮制御装置104に入力される(data_0の(5))。   Data on the fifth line is input from the scanner I / F 102 to the compression controller 104 ((5) of data_0).

圧縮制御装置104は、スキャナI/F102から5ライン目のデータを受け取ると、JPEG符号化装置106へのPage_enable_1を再びアサートし、5ライン目のデータを転送する。その結果、Page_enable_1、Line_enable_1がアサートされ、JPEG符号化装置106に5ライン目のデータが出力される(data_1の(5))。   When receiving the fifth line data from the scanner I / F 102, the compression control device 104 asserts Page_enable_1 to the JPEG encoding device 106 again and transfers the fifth line data. As a result, Page_enable_1 and Line_enable_1 are asserted, and data on the fifth line is output to the JPEG encoding device 106 ((5) of data_1).

同様に、6ライン目から8ライン目までの画像データがスキャナI/F102から圧縮制御装置104、圧縮制御装置104からJPEG符号化装置106に入力される(data_0の(6)から(8)、data_1の(6)から(8))。   Similarly, image data from the 6th line to the 8th line is input from the scanner I / F 102 to the compression control device 104, and from the compression control device 104 to the JPEG encoding device 106 (from (6) to (8) of data_0, (6) to (8) of data_1.

スキャナI/F102は、8ライン目の画像データを入力した後、これで画像が終了となるため、Page_enable_0をネゲートする。   The scanner I / F 102 negates Page_enable_0 since the image is completed after inputting the image data of the eighth line.

4ラインで分割する設定がなされているので、圧縮制御装置104は8ライン目のデータを出力した後、Page_enable_1をネゲートする。   Since the setting is made to divide by 4 lines, the compression controller 104 negates Page_enable_1 after outputting the data of the 8th line.

JPEG符号化装置106は、8ライン目までのデータの符号化が終了した時点で、圧縮制御装置104から入力されるPage_enable_1がネゲートされているので後段に出力しているPage_enable_2をネゲートする。   The JPEG encoding device 106 negates the Page_enable_2 output to the subsequent stage because the Page_enable_1 input from the compression control device 104 is negated when the encoding of data up to the eighth line is completed.

Page_enable_2は、圧縮制御装置104にフィードバックされる。圧縮制御装置104は、Page_enable_2に基づいて、JPEG符号化装置106にrst信号を入力する。その結果、JPEG符号化装置106は、画像データが入力される前の状態となり、メモリに記憶された圧縮画像データがリセットされる。   Page_enable_2 is fed back to the compression controller 104. The compression control device 104 inputs the rst signal to the JPEG encoding device 106 based on Page_enable_2. As a result, the JPEG encoding device 106 is in a state before image data is input, and the compressed image data stored in the memory is reset.

JPEG符号化装置106は、圧縮制御装置104から入力された画像データをJPEG符号データに符号化し、JPEGデータを後段へ出力する。例えば、JPEG符号化装置106は、code_enable_0をアサートし、圧縮データを記憶装置に出力する(data_2のJPEG(2))。   The JPEG encoding device 106 encodes the image data input from the compression control device 104 into JPEG code data, and outputs the JPEG data to the subsequent stage. For example, the JPEG encoding device 106 asserts code_enable_0 and outputs the compressed data to the storage device (JPEG (2) of data_2).

本実施例では8ラインのデータを4ラインと4ラインに2分割し、分割されたデータを4ライン毎に圧縮する場合であるので、分割動作はこれで終了となる。   In this embodiment, since the data of 8 lines is divided into 4 lines and 4 lines, and the divided data is compressed every 4 lines, the dividing operation is completed.

実際にはスキャナI/F102からの入力データが終るまで、以下の処理が行われる。スキャナI/F102は、画像制御装置104に画像データの転送を行う。圧縮制御装置104は、指定されたライン数まで画像データをJPEG符号化装置106に転送後Page_enable_1をネゲートし、JPEG符号化装置106のPage_enable_2のネゲートを確認し、JPEG符号化装置106をリセットする。   In practice, the following processing is performed until the input data from the scanner I / F 102 is completed. The scanner I / F 102 transfers image data to the image control apparatus 104. The compression control device 104 negates Page_enable_1 after transferring image data to the JPEG encoding device 106 up to the designated number of lines, confirms the negation of Page_enable_2 of the JPEG encoding device 106, and resets the JPEG encoding device 106.

本実施例においては、原稿の画像データを4ラインと4ラインとに2分割し、4ライン毎に圧縮する場合について説明したが、原稿の画像データを3以上に分割する場合にも適用できる。また、1ライン以上毎に圧縮する場合にも適用できる。   In the present embodiment, the document image data is divided into four lines and four lines and compressed every four lines. However, the present invention can also be applied to the case where the document image data is divided into three or more. It can also be applied to the case where compression is performed for each line or more.

本発明の実施例によれば、途切れることなく、画像読み取り装置、例えばスキャナから入力されてくる長尺画像を止めることなく、画像を分割しJPEG符号などを作成することが可能となる。   According to the embodiment of the present invention, it is possible to divide an image and create a JPEG code or the like without stopping a long image input from an image reading apparatus, for example, a scanner, without interruption.

また、分割画像ブロックの切れ目で、JPEG符号器は内部のデータを全て出力し、初期状態に復帰することが可能となるので、分割画像ブロック単位で、独立した符号を生成することが可能となる。   In addition, since the JPEG encoder can output all internal data and return to the initial state at the break of the divided image block, it is possible to generate an independent code for each divided image block. .

本発明は、画像処理装置に適用できる。   The present invention can be applied to an image processing apparatus.

本発明の実施例にかかる画像処理装置における画像分割の概要図である。It is a schematic diagram of image division in the image processing apparatus according to the embodiment of the present invention. 本発明の実施例にかかる画像処理装置を示すブロック図である。It is a block diagram which shows the image processing apparatus concerning the Example of this invention. 本発明の実施例にかかる画像処理装置の動作を示すタイミングチャートである。6 is a timing chart illustrating an operation of the image processing apparatus according to the embodiment of the present invention.

符号の説明Explanation of symbols

100 画像処理装置   100 Image processing apparatus

Claims (12)

画像データを、ラインを単位として複数に分割する分割手段と、
前記分割手段によって分割された画像データを所定のライン数毎に圧縮する圧縮手段と、
前記圧縮手段によって圧縮された圧縮画像データを出力する出力手段と
を備えることを特徴とする画像処理装置。
A dividing means for dividing the image data into a plurality of units in units of lines;
Compression means for compressing the image data divided by the dividing means for each predetermined number of lines;
An image processing apparatus comprising: output means for outputting compressed image data compressed by the compression means.
請求項1に記載の画像処理装置において、
原稿を読取り、画像データを生成する読み取り手段と、
前記出力手段により出力された圧縮画像データを記憶する記憶手段と
を備え、
前記分割手段は、前記読取手段において読み取る原稿の副走査長が所定の値より大きい場合に、前記画像データの分割を行うことを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
Reading means for reading a document and generating image data;
Storage means for storing the compressed image data output by the output means,
The image processing apparatus according to claim 1, wherein the dividing unit divides the image data when a sub-scanning length of a document read by the reading unit is larger than a predetermined value.
請求項1または2に記載の画像処理装置において、
直前に圧縮したラインに対応する圧縮画像データを格納するメモリ
を有し、
前記圧縮手段は、前記メモリを参照して圧縮処理を実行することを特徴とする画像処理装置。
The image processing apparatus according to claim 1 or 2,
It has a memory to store the compressed image data corresponding to the line compressed immediately before,
The image processing apparatus, wherein the compression means executes compression processing with reference to the memory.
請求項3に記載の画像処理装置において、
前記圧縮手段は、分割された画像データの圧縮処理後、前記メモリをリセットすることを特徴とする画像処理装置。
The image processing apparatus according to claim 3.
The image processing apparatus, wherein the compression unit resets the memory after compression processing of the divided image data.
請求項1ないし4のいずれか1項に記載の画像処理装置において、
前記圧縮手段によって圧縮する単位となるライン数を設定する圧縮単位設定手段
を備えることを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 4,
An image processing apparatus comprising compression unit setting means for setting the number of lines as a unit to be compressed by the compression means.
原稿を読み取り、画像データを生成する読み取りステップと、
前記画像データを、ラインを単位として複数に分割する分割ステップと、
分割された画像データを所定のライン数毎に圧縮する圧縮ステップと、
圧縮された圧縮画像データを記憶する圧縮画像データ記憶ステップと
を有することを特徴とする画像処理方法。
A reading step for reading an original and generating image data;
A division step of dividing the image data into a plurality of units in units of lines;
A compression step of compressing the divided image data for each predetermined number of lines;
A compressed image data storage step for storing compressed compressed image data.
請求項6に記載の画像処理方法において、
前記分割ステップは、前記読み取りステップにおいて読み取る原稿の副走査長が所定の値より大きい場合、前記画像データの分割を行うことを特徴とする画像処理方法。
The image processing method according to claim 6,
The image processing method according to claim 1, wherein the image data is divided when the sub-scanning length of the document read in the reading step is larger than a predetermined value.
請求項6または7に記載の画像処理方法において、
前記圧縮ステップは、直前に圧縮したラインに対応する圧縮画像データをメモリに格納し、当該メモリを参照して圧縮処理を実行することを特徴とする画像処理方法。
The image processing method according to claim 6 or 7,
The image processing method characterized in that the compression step stores compressed image data corresponding to a line compressed immediately before in a memory and executes compression processing with reference to the memory.
請求項8に記載の画像処理方法において、
前記圧縮ステップは、分割された画像データの圧縮処理後、前記メモリをリセットすることを特徴とする画像処理方法。
The image processing method according to claim 8.
In the compression step, the memory is reset after compression processing of the divided image data.
請求項6ないし9のいずれか1項に記載の画像処理方法において、
前記圧縮ステップによって圧縮する単位となるライン数を設定する圧縮単位設定ステップ
を有し、
前記圧縮ステップは、設定されたライン数にしたがって、画像データを圧縮することを特徴とする画像処理方法。
The image processing method according to any one of claims 6 to 9,
A compression unit setting step for setting the number of lines as a unit to be compressed by the compression step;
The image processing method characterized in that the compression step compresses image data according to a set number of lines.
請求項6ないし10のいずれか1項に記載の画像処理方法をコンピュータに実行させるためのプログラム。 A program for causing a computer to execute the image processing method according to any one of claims 6 to 10. 請求項11に記載のプログラムを記録したコンピュータ読取可能な記録媒体。 The computer-readable recording medium which recorded the program of Claim 11.
JP2006057974A 2006-03-03 2006-03-03 Image processing device, image processing method, program, and recording medium Pending JP2007235851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006057974A JP2007235851A (en) 2006-03-03 2006-03-03 Image processing device, image processing method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006057974A JP2007235851A (en) 2006-03-03 2006-03-03 Image processing device, image processing method, program, and recording medium

Publications (1)

Publication Number Publication Date
JP2007235851A true JP2007235851A (en) 2007-09-13

Family

ID=38555934

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006057974A Pending JP2007235851A (en) 2006-03-03 2006-03-03 Image processing device, image processing method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP2007235851A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380895A (en) * 2020-09-30 2021-02-19 深圳点猫科技有限公司 Portrait segmentation method, device and equipment based on deep learning

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380895A (en) * 2020-09-30 2021-02-19 深圳点猫科技有限公司 Portrait segmentation method, device and equipment based on deep learning

Similar Documents

Publication Publication Date Title
US8842825B2 (en) Data encoding apparatus, data encoding method, data encoding program, and recording medium
JP6191394B2 (en) Data compression apparatus, program, and computer-readable recording medium
JP3097739B2 (en) MPEG system priority processing circuit
US6992788B2 (en) Image processing apparatus and method, and storage medium
JP2007235851A (en) Image processing device, image processing method, program, and recording medium
KR102408728B1 (en) Device for generating Hash chain and Method for generating Hash chain to have integrity based on continuous data
JP2013153358A (en) Image reading device
JP2007164552A (en) Memory controller and data transfer method
JP5705143B2 (en) Image reading device
JPH10341437A (en) Image processing method and device therefor
JP2002077637A (en) Apparatus and method of image coding
JP4941254B2 (en) Image compression apparatus, printer, and multifunction machine
JP2001218044A5 (en)
JP3912372B2 (en) Color image processing device
JP5222803B2 (en) Image processing device
JP2008227628A (en) Image processing apparatus, image processing method and image forming apparatus
KR20170046279A (en) Decoding apparatus, electronic apparatus and the controlling method thereof
JP2015148851A (en) image processing apparatus
JP2005202628A (en) Device, method and program for controlling memory
JP2008071054A (en) Data transfer control method, data processor, and image processor
JP3214617B2 (en) Multi-value image printer
JP2007251983A (en) Image data output apparatus
CN103795955A (en) Electronic apparatus, moving image playback apparatus and moving image decoding method
JP2007183886A (en) Image processing apparatus
JP2005005903A (en) Data processing system