JP4720872B2 - Image processing apparatus and program - Google Patents

Image processing apparatus and program Download PDF

Info

Publication number
JP4720872B2
JP4720872B2 JP2008205701A JP2008205701A JP4720872B2 JP 4720872 B2 JP4720872 B2 JP 4720872B2 JP 2008205701 A JP2008205701 A JP 2008205701A JP 2008205701 A JP2008205701 A JP 2008205701A JP 4720872 B2 JP4720872 B2 JP 4720872B2
Authority
JP
Japan
Prior art keywords
compressed
image data
original image
block
data
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.)
Active
Application number
JP2008205701A
Other languages
Japanese (ja)
Other versions
JP2010041675A (en
Inventor
貴典 奥岡
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2008205701A priority Critical patent/JP4720872B2/en
Publication of JP2010041675A publication Critical patent/JP2010041675A/en
Application granted granted Critical
Publication of JP4720872B2 publication Critical patent/JP4720872B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

本発明は、画像処理装置及びプログラムに関する。   The present invention relates to an image processing apparatus and a program.

プリンタ、複写機、又は複合機(プリンタ、スキャナ、複写機の機能を併せ持つ装置)などの画像処理装置の中には、当該装置が持つ用紙よりも面積が大きい画像を複数に分割し、複数枚の用紙に分けて印刷出力する機能を持つものが存在する。この種の装置は、例えばA1サイズの画像をA3サイズ4枚に分けて印刷したり、A4サイズ8枚に分けて印刷したりする。このような印刷処理を、以下では分割印刷と呼ぶこととする。   In an image processing apparatus such as a printer, a copier, or a multifunction peripheral (an apparatus having the functions of a printer, a scanner, and a copier), an image having a larger area than the sheet of the apparatus is divided into a plurality of sheets. Some of them have the function of printing out paper separately. This type of apparatus, for example, prints A1 size images by dividing them into four A3 sizes or printing them by dividing them into eight A4 sizes. Hereinafter, such a printing process is referred to as divided printing.

特許文献1には、例えばA2サイズの画像ならA3サイズの用紙2枚、A1サイズの画像ならA3サイズの用紙4枚などと、画像を予め設定された用紙サイズ単位に分割して出力する分割印刷機能を有する画像処理装置が開示されている。また、出力用紙サイズをクライアントコンピュータで指定すると、画像処理装置がその指定された用紙サイズ単位に画像を分割して出力することも開示されている。いずれの場合も、画像処理装置は、入力されたページ記述言語データを解釈してラスター画像を生成し、そのラスター画像を予め設定された用紙サイズ又はユーザから指定された用紙サイズごとに分割し、分割後の小面積のラスター画像をそれぞれ用紙に印刷する。   Patent Document 1 discloses, for example, divided printing in which an image is divided into preset paper size units, such as two A3 size sheets for an A2 size image and four A3 size sheets for an A1 size image. An image processing apparatus having a function is disclosed. It is also disclosed that when an output paper size is designated by a client computer, the image processing apparatus divides and outputs an image in the designated paper size unit. In any case, the image processing apparatus generates a raster image by interpreting the input page description language data, and divides the raster image into a preset paper size or a paper size designated by the user, Each divided raster image is printed on paper.

いったんある用紙サイズの設定で分割印刷を行った後、使用する用紙サイズを変更して再び分割印刷を行う場合、従来技術では、ページ記述言語データを再度解釈してラスター画像を再度生成し、そのラスター画像を使用する用紙サイズごとに分割することとなる。   Once split printing has been performed with a certain paper size setting, and then split printing is performed again after changing the paper size to be used, the conventional technology reinterprets the page description language data and regenerates the raster image. The raster image is divided for each paper size to be used.

一方、画像メモリ・プリントエンジン間などといった画像データ転送路におけるデータ転送量を少なくしたり、一時的に保存する画像データ量を低減したりするために、いったん生成したラスター画像をデータ圧縮する機能を備えた画像処理装置も普及している。この種の画像処理装置において、使用する用紙のサイズを変更して何度も分割印刷を行う場合、印刷の都度、ラスター画像の再生成、分割、分割後の小面積の各画像の圧縮、という一連の処理を繰り返すこととなる。   On the other hand, in order to reduce the data transfer amount in the image data transfer path such as between the image memory and the print engine, or to reduce the amount of image data to be temporarily stored, a function to compress the raster image once generated is provided. The provided image processing apparatus is also widespread. In this type of image processing apparatus, when divided printing is performed many times by changing the size of the paper to be used, the raster image is regenerated, divided, and each image of a small area after compression is compressed each time printing is performed. A series of processes will be repeated.

分割前のラスター画像そのものを画像処理装置内に保存しておけば、ラスター画像の再生成は不要となるが、画像処理装置の記憶容量を大量に使用してしまうことになる。また、この方法では、分割後の各画像の圧縮処理は依然必要である。   If the raster image itself before division is stored in the image processing apparatus, it is not necessary to regenerate the raster image, but the storage capacity of the image processing apparatus is used in large quantities. In this method, the compression processing of each image after division is still necessary.

また、分割前のラスター画像の圧縮画像を保存しておき、再度分割印刷が指示された場合にその圧縮画像を伸長して元のラスター画像を再生し、用紙サイズ単位に分割することも考えられる。しかし、この方法では、圧縮画像を伸長する処理が必要になる。また、分割後の各画像の圧縮処理は依然必要である。   It is also conceivable that a compressed image of a raster image before division is saved, and when the division printing is instructed again, the compressed image is expanded to reproduce the original raster image and divided into paper size units. . However, this method requires processing for decompressing the compressed image. Further, the compression processing of each image after division is still necessary.

また、原画像の一部分を切り出して印刷する機能(いわゆるトリミング機能)を備える画像処理装置が存在する。この種の装置で切り出す部分を変更しながら複数回印刷を行う場合、その都度、ページ記述言語データの解釈又は圧縮画像の伸長により原画像を生成し、原画像から部分画像を切り出し、圧縮するという処理を行うことになる。   In addition, there is an image processing apparatus having a function of cutting out and printing a part of an original image (so-called trimming function). When printing multiple times while changing the portion to be cut out with this type of device, each time the original image is generated by interpreting the page description language data or expanding the compressed image, the partial image is cut out from the original image and compressed Processing will be performed.

特開2003−046762号公報JP 2003-046762 A

本発明は、原画像データからの切り出し範囲を変更した場合でも、変更後の切り出し範囲に対する部分画像のデータ圧縮が不要な方式を提供する。   The present invention provides a method that does not require data compression of a partial image for a cutout range after the change even when the cutout range from the original image data is changed.

請求項1に係る発明は、原画像データをあらかじめ定められたサイズのブロックごとに圧縮し、各ブロックの圧縮結果である各圧縮ブロックが前記原画像データにおけるブロック配列に対応する配列で並んだ圧縮原画像データを生成する圧縮手段と、前記圧縮原画像データを記憶する記憶手段と、前記原画像データから切り出すべき部分画像の位置的範囲を特定する部分特定情報の入力を受け付ける受付手段と、前記配列に従って前記圧縮原画像データ中の各圧縮ブロックを認識していくことで、前記部分特定情報により特定される部分画像の位置的範囲に対応する前記圧縮原画像データ中の圧縮ブロック群の範囲を特定し、特定した範囲に属する圧縮ブロック群を前記圧縮原画像データから切り出すと共に、当該部分画像の幅及び高さを画素数単位で示すヘッダ情報と切り出した前記圧縮ブロック群とを含むデータを前記部分画像の圧縮データとして出力する切り出し手段と、前記切り出し手段が出力した前記部分画像の圧縮データを伸長し、出力する伸長出力手段と、を備える画像処理装置である。 The invention according to claim 1 compresses original image data for each block of a predetermined size, and compresses each compressed block, which is a compression result of each block, in an array corresponding to the block array in the original image data. Compression means for generating original image data; storage means for storing the compressed original image data; accepting means for receiving input of partial specifying information for specifying a positional range of a partial image to be cut out from the original image data; By recognizing each compressed block in the compressed original image data according to the arrangement, the range of the compressed block group in the compressed original image data corresponding to the positional range of the partial image specified by the partial specifying information is determined. identified, with cut out compressed block group belonging to the specified range from the previous SL compressed original image data, image width and height of the partial image And clipping means for outputting data including said compressed blocks cut out the header information indicating the number units as compressed data of the partial image, and decompressing the compressed data of the partial image in which the cut-out means has outputted, and outputs extended And an output unit.

請求項2に係る発明は、請求項1に係る発明において、前記圧縮手段は、前記原画像データの各ブロックを、前記圧縮原画像データにおける当該ブロックの境界を示す境界符号と、当該ブロックの圧縮結果であるデータ符号と、を含む圧縮ブロックへと変換し、前記切り出し手段は、前記圧縮原画像データから各圧縮ブロックの境界符号を検出することにより前記各圧縮ブロックを識別し、識別の結果に基づき前記切り出すべき部分画像の位置的範囲に対応する圧縮ブロック群の範囲を求める、ことを特徴とする。   According to a second aspect of the present invention, in the first aspect of the invention, the compression unit includes: a block code of the original image data; a boundary code indicating a boundary of the block in the compressed original image data; and compression of the block And converting the data block into a compressed block including the data code as a result, and the clipping unit identifies each compressed block by detecting a boundary code of each compressed block from the compressed original image data, and the identification result is obtained. A range of the compressed block group corresponding to the positional range of the partial image to be cut out is obtained based on.

請求項3に係る発明は、請求項1に係る発明において、前記受付手段は、前記部分特定情報として前記原画像データを分割出力する場合の分割単位の画像サイズに関する指定を受け付け、前記切り出し手段は、前記部分特定情報が表す前記分割単位の画像サイズに基づき前記原画像データの分割結果である各部分画像の位置的範囲をそれぞれ特定し、特定した各部分画像の位置的範囲に対応する範囲の圧縮ブロック群を前記圧縮原画像データから切り出す、ことを特徴とする。 According to a third aspect of the present invention, in the first aspect of the invention, the accepting unit accepts designation relating to an image size of a division unit when the original image data is divided and output as the partial specifying information, and the clipping unit includes: , Specifying the positional range of each partial image as a result of the division of the original image data based on the image size of the division unit represented by the partial specifying information, and the range corresponding to the specified positional range of each partial image cutting the compressed blocks from the previous SL compressed original image data, characterized in that.

請求項4に係る発明は、コンピュータを、原画像データをあらかじめ定められたサイズのブロックごとに圧縮し、各ブロックの圧縮結果である各圧縮ブロックが前記原画像データにおけるブロック配列に対応する配列で並んだ圧縮原画像データを生成する圧縮手段、前記圧縮原画像データを記憶する記憶手段、前記原画像データから切り出すべき部分画像の位置的範囲を特定する部分特定情報の入力を受け付ける受付手段、前記配列に従って前記圧縮原画像データ中の各圧縮ブロックを認識していくことで、前記部分特定情報により特定される部分画像の位置的範囲に対応する前記圧縮原画像データ中の圧縮ブロック群の範囲を特定し、特定した範囲に属する圧縮ブロック群を前記圧縮原画像データから切り出すと共に、当該部分画像の幅及び高さを画素数単位で示すヘッダ情報と切り出した前記圧縮ブロック群とを含むデータを前記部分画像の圧縮データとして出力する切り出し手段、前記切り出し手段が出力した前記部分画像の圧縮データを伸長し、出力する伸長出力手段、として機能させるためのプログラムである。 In the invention according to claim 4, the computer compresses the original image data for each block of a predetermined size, and each compressed block as a compression result of each block is an array corresponding to the block array in the original image data. Compression means for generating aligned compressed original image data, storage means for storing the compressed original image data, accepting means for receiving input of partial specifying information for specifying a positional range of a partial image to be cut out from the original image data, By recognizing each compressed block in the compressed original image data according to the arrangement, the range of the compressed block group in the compressed original image data corresponding to the positional range of the partial image specified by the partial specifying information is determined. identified, with cut out compressed block group belonging to the specified range from the previous SL compressed original image data, the width及of the partial image Clipping means for outputting a data including the height said compressed blocks cut out the header information shown by each number of pixels as compressed data of the partial image, and decompressing the compressed data of the partial image in which the cut-out means has outputted, It is a program for functioning as decompression output means for outputting.

請求項1又は4に係る発明によれば、原画像データから切り出す位置的範囲を変更した場合でも、変更後の範囲の圧縮データが得られ、再度の圧縮が不要である。   According to the first or fourth aspect of the invention, even when the positional range cut out from the original image data is changed, compressed data in the changed range is obtained, and re-compression is unnecessary.

請求項2に係る発明によれば、境界符号を探索することで切り出すべき位置的範囲に対応する圧縮原画像データ上の範囲を特定することができる。   According to the second aspect of the present invention, it is possible to specify the range on the compressed original image data corresponding to the positional range to be extracted by searching for the boundary code.

請求項3に係る発明によれば、原画像データを複数の部分画像に分割して出力することが可能となる。   According to the third aspect of the invention, the original image data can be divided into a plurality of partial images and output.

この実施形態における画像分割処理の方式を、図1を参照して説明する。例えば、最大の用紙サイズがA3であるプリンタで、A1サイズの原画像データ10をA3サイズの4枚の画像に分割して印刷出力する場合を例にとる。   A method of image division processing in this embodiment will be described with reference to FIG. For example, a case where the maximum paper size is A3 and the A1 size original image data 10 is divided into four A3 size images and printed is taken as an example.

従来技術では、原画像データ10を例えばA3サイズ4枚に分割したあと、それら分割結果の画像(分割画像と呼ぶ)を画像圧縮して一時保存し、その後伸長して印刷していた。   In the prior art, after dividing the original image data 10 into, for example, four A3 sizes, images of the division results (called divided images) are image-compressed and temporarily stored, and then decompressed and printed.

これに対して、この実施形態では、原画像データ10を画像圧縮し、圧縮結果である圧縮原画像データ12を4つの圧縮部分画像データ14a、14b、14c、14dに分割する。そして、圧縮部分画像データ14a、14b、14c、14dをそれぞれ伸長し、印刷することで、A3サイズの4分割の印刷結果16a,16b,16c,16dを得る。   On the other hand, in this embodiment, the original image data 10 is image-compressed, and the compressed original image data 12 that is the compression result is divided into four compressed partial image data 14a, 14b, 14c, and 14d. Then, the compressed partial image data 14a, 14b, 14c, and 14d are expanded and printed, respectively, to obtain A3 size four-division print results 16a, 16b, 16c, and 16d.

このように圧縮画像データのレベルで画像を分割するために、この実施形態では、原画像データ上での位置に対応する圧縮画像データ上の位置を特定できるような画像圧縮方式を用いる。   In this way, in order to divide the image at the level of the compressed image data, in this embodiment, an image compression method is used in which the position on the compressed image data corresponding to the position on the original image data can be specified.

このような要件を満たす画像圧縮方式はいくつか存在するが、ここでは、原画像をあらかじめ定められたサイズのブロックに分割してブロック単位で圧縮を行い、ブロックごとに当該ブロックの境界を示すコードを含んだ圧縮データを生成する圧縮方式を用いる。このような圧縮方式として、例えば次のようなものを用いることができる。   There are several image compression methods that satisfy these requirements. Here, a code that divides the original image into blocks of a predetermined size and compresses them in units of blocks, and indicates the boundaries of the blocks for each block. A compression method for generating compressed data including As such a compression method, for example, the following can be used.

この方式では、印刷対象の原画像を構成する画素データを、主走査方向に連続したk画素(kは2以上の整数)ごとにブロックを生成し、それら画素のデータをブロック単位で圧縮する。例えば1画素が1バイトのデータ幅を持つ場合、原画像の主走査方向のラインデータは、M(Mは自然数)個のkバイト固定長のブロックに分割され、それらブロックごとに圧縮される。ブロックを圧縮するための圧縮アルゴリズムとしてどのようなものを用いるかはこの実施形態における画像分割方式にとって本質的なことではないが、例えば、特開2007−88685号公報に示されるのと同様の、注目ブロックとその近傍(例えば直前又は直上)の参照ブロックとの画像の一致(あるいは誤差)を利用して符号化する予測符号化方式を用いることができる。この種の圧縮アルゴリズムにより得られる圧縮結果のデータ構造の一例を図2に示す。   In this method, a block of pixel data constituting an original image to be printed is generated for each k pixels (k is an integer of 2 or more) continuous in the main scanning direction, and the data of these pixels is compressed in units of blocks. For example, when one pixel has a data width of 1 byte, line data in the main scanning direction of the original image is divided into M (M is a natural number) k-byte fixed-length blocks and compressed for each block. What is used as a compression algorithm for compressing a block is not essential for the image division method in this embodiment, but for example, the same as that disclosed in Japanese Patent Application Laid-Open No. 2007-88685, It is possible to use a predictive coding method in which coding is performed using matching (or error) of an image between a block of interest and a reference block in the vicinity (for example, immediately before or immediately above). An example of the data structure of the compression result obtained by this kind of compression algorithm is shown in FIG.

図2に例示するように、1ページの画像の圧縮結果であるページ符号100は、ヘッダ符号110と、主走査方向のラインごとの圧縮結果であるM個のライン符号120−1〜120−M(以下、ライン符号120と総称)を含む。すなわち、この例では1ページはMラインを含む。ヘッダ符号110には、当該ページの幅及び高さ(例えば画素数単位)などのように、ページの特等を示す情報が含まれる。   As illustrated in FIG. 2, a page code 100 that is a compression result of an image of one page includes a header code 110 and M line codes 120-1 to 120 -M that are compression results for each line in the main scanning direction. (Hereinafter collectively referred to as line code 120). That is, in this example, one page includes M lines. The header code 110 includes information indicating the special characteristics of the page, such as the width and height (for example, the number of pixels) of the page.

個々のライン符号120は、マーカー符号130と、ブロックごとの圧縮結果であるN個のブロック符号140−1〜140−N(以下、ブロック符号140と総称)とを含む。   Each line code 120 includes a marker code 130 and N block codes 140-1 to 140-N (hereinafter, collectively referred to as a block code 140) which are compression results for each block.

マーカー符号130は、ライン全体の情報を示す符号であり、識別子符号150とデータ符号160とを含む。識別子符号150は、ラインの先頭を表すあらかじめ定められた符号である。データ符号160は、例えば、当該ラインの符号量など、当該ラインの圧縮データの特徴を示す情報が含まれる。なお、ライン単位のマーカー符号130は、圧縮データの編集作業(例えば圧縮データのまま画像を180度回転させるなど)などを想定して、ラインを区別しやすくするために導入された符号であり、復号のためには必須のものではない。ヘッダ情報110にページのサイズ(幅及び高さ)の情報が含まれているため、マーカー符号130がなくても、復号結果の画素データをページの幅ごとに折り返してラスター走査順に並べることで、ページを再構成できるからである。   The marker code 130 is a code indicating information on the entire line, and includes an identifier code 150 and a data code 160. The identifier code 150 is a predetermined code that represents the head of the line. The data code 160 includes information indicating the characteristics of the compressed data of the line, such as the code amount of the line. Note that the line unit marker code 130 is a code introduced in order to make it easy to distinguish lines, assuming an editing operation of compressed data (for example, rotating an image 180 degrees with compressed data). It is not essential for decryption. Since the header information 110 includes page size (width and height) information, even if there is no marker code 130, the decoded pixel data is folded for each page width and arranged in raster scan order. This is because the page can be reconstructed.

ブロック符号140は、識別子符号170とデータ符号180とを含む。識別子符号170は、例えば、圧縮結果であるデータ符号180が当該ブロック近傍のどの参照ブロックを基準にしたものかを示す情報を含む符号である。データ符号180は、例えば、当該ブロックが参照ブロックと一致する場合には、例えばその一致の回数(ランレングス)を符号化した値を持ち、当該ブロックが参照ブロックに一致しない場合は、両者の誤差を符号化した値を持つ。   The block code 140 includes an identifier code 170 and a data code 180. The identifier code 170 is a code including information indicating which reference block in the vicinity of the block the data code 180 as a compression result is based on, for example. For example, when the block matches the reference block, the data code 180 has, for example, a value obtained by encoding the number of times of matching (run length). With the encoded value.

識別子符号150及び170には、データ符号160及び180には用いられない符号語を用い、識別子符号150及び170の位置以外にはそれら識別子符号150及び170に該当する符号語が現れないようにする。これにより、圧縮画像データから識別子符号150及び170を探すことで、各ラインの先頭や、各ブロックの先頭を特定することが可能になる。これにより、圧縮画像データを、ブロック単位で分割したり、切り出したりすることが可能となる。   For the identifier codes 150 and 170, code words that are not used for the data codes 160 and 180 are used, and code words corresponding to the identifier codes 150 and 170 other than the positions of the identifier codes 150 and 170 do not appear. . Thus, by searching for the identifier codes 150 and 170 from the compressed image data, it becomes possible to specify the head of each line or the head of each block. Thereby, the compressed image data can be divided or cut out in units of blocks.

なお、印刷対象の画像がカラー画像である場合、例えばシアン、マゼンタ、イエロー、ブラックの各色の画像ごとに、上述の圧縮を施すこともできる。   When the image to be printed is a color image, for example, the above-described compression can be performed for each color image of cyan, magenta, yellow, and black.

次に、図3を参照して、この実施形態の画像処理装置の機能構成の一例を説明する。この例では、画像処理装置は画像入力部20、画像圧縮部22、記憶装置24、指示受付部26、制御部28、切り出し部30、画像伸長部32、印刷部34を備える。   Next, an example of a functional configuration of the image processing apparatus according to this embodiment will be described with reference to FIG. In this example, the image processing apparatus includes an image input unit 20, an image compression unit 22, a storage device 24, an instruction reception unit 26, a control unit 28, a cutout unit 30, an image expansion unit 32, and a printing unit 34.

画像入力部20は、印刷対象の原画像を入力する部分である。画像入力部20は、例えばページ記述言語で記述された印刷データを処理してラスター画像データを生成するインタープリタである。また、画像入力部20は、紙原稿を光学的に読み取ってラスター画像データを生成するスキャナであってもよい。   The image input unit 20 is a part for inputting an original image to be printed. The image input unit 20 is an interpreter that generates raster image data by processing print data described in a page description language, for example. The image input unit 20 may be a scanner that optically reads a paper document and generates raster image data.

画像圧縮部22は、画像入力部20から入力された原画像(ラスター画像)データを、上に例示したように、原画像データ上での位置に対応する圧縮画像データ上の位置を特定できるような画像圧縮方式で圧縮する。この圧縮の結果である圧縮画像データは、ハードディスク等の記憶装置24に記憶される。記憶装置24に記憶された圧縮画像データは、制御部28により読み出され、印刷に供される。   The image compression unit 22 can specify the position on the compressed image data corresponding to the position on the original image data, as exemplified above, on the original image (raster image) data input from the image input unit 20. Compress with a simple image compression method. Compressed image data as a result of this compression is stored in a storage device 24 such as a hard disk. The compressed image data stored in the storage device 24 is read out by the control unit 28 and used for printing.

指示受付部26は、例えば、当該画像処理装置に対するユーザからの指示を受け付けるユーザインターフェイス機構である。この実施形態との関連で言えば、指示受付部26は、原画像データについての分割出力指示や、原画像データから一部分を切り出して出力するトリミング指示などを受け付ける。また、分割出力やトリミングの指示は、ページ記述言語の印刷データ中に記述される場合もある。   The instruction receiving unit 26 is, for example, a user interface mechanism that receives an instruction from the user for the image processing apparatus. In relation to this embodiment, the instruction receiving unit 26 receives a split output instruction for original image data, a trimming instruction for cutting out and outputting a part of the original image data, and the like. In addition, divided output and trimming instructions may be described in print data in a page description language.

制御部28は、画像処理装置の印刷処理を制御する。この実施形態との関連で言えば、制御部28は、割出力指示やトリミング指示に応じて切り出し部30に圧縮画像データの切り出しを行わせる。切り出し部30は、圧縮画像データの中から、制御部28から指示された部分を切り出す処理を実行する。   The control unit 28 controls the printing process of the image processing apparatus. In relation to this embodiment, the control unit 28 causes the cutout unit 30 to cut out the compressed image data in accordance with the split output instruction or the trimming instruction. The cutout unit 30 performs a process of cutting out a portion instructed from the control unit 28 from the compressed image data.

画像伸長部32は、画像圧縮部22の圧縮方式に対応した伸長方式で圧縮画像データを伸長し、ラスター画像データを再生する。再生されたラスター画像データは印刷部34により用紙上に印刷される。   The image decompression unit 32 decompresses the compressed image data by the decompression method corresponding to the compression method of the image compression unit 22 and reproduces the raster image data. The reproduced raster image data is printed on the paper by the printing unit 34.

原画像データの分割出力指示を受けた場合の制御部28の処理手順の一例を、図4を参照して説明する。   An example of a processing procedure of the control unit 28 when receiving an instruction for dividing and outputting original image data will be described with reference to FIG.

分割出力の指示には、例えば、分割単位のサイズを求める基礎となるサイズ特定情報が含まれる。サイズ特定情報としては、例えば、分割単位の用紙サイズ、あるいは原画像を何分割するかという分割数、などがある。また、記憶装置24に記憶された圧縮原画像データに対する分割出力指示には、分割出力の対象とする圧縮原画像データを特定する情報が含まれる。   The division output instruction includes, for example, size specifying information that is a basis for obtaining the size of the division unit. The size specifying information includes, for example, the paper size in units of division, or the number of divisions indicating how many times the original image is divided. The divided output instruction for the compressed original image data stored in the storage device 24 includes information for specifying the compressed original image data to be divided and output.

このような分割出力指示を受けた制御部28は、サイズ特定情報に基づき、分割結果である各分割画像が原画像データにおいて占める位置的範囲(言い換えれば、各分割画像の境界の位置)を計算する(S10)。この位置的範囲は、例えば、画素を単位として記述される。   Upon receiving such a division output instruction, the control unit 28 calculates, based on the size specifying information, the positional range (in other words, the position of the boundary of each division image) occupied by each division image as the division result in the original image data. (S10). This positional range is described in units of pixels, for example.

例えば、原画像データがA1サイズ(横(x)方向の画素数がP,縦(y)方向の画素(ライン)数がQ、とする)であり、分割単位のサイズとしてA3が指定された場合を例にとると次のようになる。すなわち、この場合、原画像データは4つの分割画像へと分割され、第1の分割画像の位置的範囲は、左端がx=1、右端がx=P/2、上端がy=1、下端がy=Q/2の四辺で囲まれる範囲となる。同様に、第2の分割画像の位置的範囲はx=(P/2)+1〜P、y=1〜(Q/2)、第3の分割画像の位置的範囲はx=1〜(P/2)、y=(Q/2)+1〜Q、第4の分割画像の位置的範囲はx=(P/2)+1〜P、y=(Q/2)+1〜Q、である。   For example, the original image data is A1 size (the number of pixels in the horizontal (x) direction is P, the number of pixels (lines) in the vertical (y) direction is Q), and A3 is specified as the size of the division unit. Taking the case as an example: That is, in this case, the original image data is divided into four divided images, and the positional range of the first divided image is such that the left end is x = 1, the right end is x = P / 2, the upper end is y = 1, and the lower end. Is a range surrounded by four sides of y = Q / 2. Similarly, the positional range of the second divided image is x = (P / 2) +1 to P, y = 1 to (Q / 2), and the positional range of the third divided image is x = 1 to (P / 2), y = (Q / 2) +1 to Q, and the positional range of the fourth divided image is x = (P / 2) +1 to P, y = (Q / 2) +1 to Q.

次に制御部28は、それら各分割画像の位置的範囲を、ブロック単位に換算する(S12)。1ブロックが縦1ライン×横k画素であるとすると、例えば上述の第1の分割画像は、ブロック単位では、左端がx=1、右端がx=(P/2)/k、上端がy=1、下端がy=(Q/2)の範囲となる。第2〜第4の分割画像についても、同様にブロック単位での範囲が求められる。   Next, the control unit 28 converts the positional range of each of the divided images into block units (S12). Assuming that one block is one vertical line × horizontal k pixels, for example, in the first divided image, the left end is x = 1, the right end is x = (P / 2) / k, and the upper end is y. = 1, and the lower end is in the range y = (Q / 2). Similarly, for the second to fourth divided images, a range in units of blocks is obtained.

次に制御部28は、切り出し部30に対し、圧縮原画像データからの各分割画像に相当する部分の切り出しを指示する(S14)。この切り出し指示には、各分割画像について、ブロック単位で表された切り出し範囲(すなわち当該分割画像の範囲)の情報が含まれる。   Next, the control unit 28 instructs the cutout unit 30 to cut out a portion corresponding to each divided image from the compressed original image data (S14). This cutout instruction includes information on the cutout range (that is, the range of the divided image) expressed in block units for each divided image.

制御部28は、この指示のあと、切り出し部30から各分割画像の圧縮画像データが渡されるのを待ち(S16)、各分割画像の圧縮画像データを受け取ると、それら各圧縮画像データを画像伸長部32に渡して伸長させ、その伸長結果を印刷部34に印刷させる(S18)。   After this instruction, the control unit 28 waits for the compressed image data of each divided image to be delivered from the cutout unit 30 (S16). When the compressed image data of each divided image is received, the compressed image data is decompressed. The data is transferred to the section 32 and expanded, and the expanded result is printed on the printing section 34 (S18).

次に、図5を参照して、切り出し部30の処理手順の一例を説明する。この例では、分割の対象である圧縮原画像データが図2に例示したデータ構造を有しているとする。   Next, an example of the processing procedure of the cutout unit 30 will be described with reference to FIG. In this example, it is assumed that the compressed original image data to be divided has the data structure illustrated in FIG.

この手順では、まず圧縮原画像データ(すなわちページ符号100)の先頭にあるヘッダ符号110をスキップし(S20)、マーカー符号130を探索することで切り出し開始ライン(すなわち切り出し範囲の上端のライン)を見つける(S22)。すなわち、切り出し部30は、例えば、圧縮原画像データを順に読み取りながら、マーカー符号130中の識別子符号150に該当する符号語パターンを探索し、識別子符号150が見つかるたびにライン数カウンタをカウントアップしていく。ライン数カウンタは、切り出し部30が処理しているライン(現在ラインと呼ぶ)の番号(y座標)を示す。ライン数カウンタの値が切り出し開始ラインのライン番号に達した時点でステップS22の探索を終了すればよい。探索終了時点では、切り出し部30は、圧縮原画像データ上で、切り出し開始ラインの先頭を見ていることになる。   In this procedure, first, the header code 110 at the head of the compressed original image data (that is, the page code 100) is skipped (S20), and the marker code 130 is searched to set the cut start line (that is, the upper line of the cut range). Find (S22). That is, for example, the cutout unit 30 searches the code word pattern corresponding to the identifier code 150 in the marker code 130 while sequentially reading the compressed original image data, and counts up the line number counter each time the identifier code 150 is found. To go. The line number counter indicates the number (y coordinate) of the line (referred to as the current line) being processed by the cutout unit 30. The search in step S22 may be terminated when the value of the line number counter reaches the line number of the cut start line. At the end of the search, the clipping unit 30 looks at the top of the clipping start line on the compressed original image data.

なお、圧縮原画像データがラインの先頭を表すマーカー符号130を有しない場合でも、1ラインあたりのブロック数は既知なので、ブロック符号140の識別子符号150を検出してカウントしていくことで、現在ラインのライン番号を求めることができる。   Even if the compressed original image data does not have the marker code 130 representing the head of the line, the number of blocks per line is already known, so by detecting and counting the identifier code 150 of the block code 140, the current The line number of the line can be determined.

次に、切り出し部30は、切り出し開始ラインの先頭から順に、ブロックの識別子符号170を探索することで切り出し開始ブロック(すなわち切り出し範囲の左端に該当するブロック)を見つける(S24)。すなわち、切り出し部30は、例えば、当該ラインの圧縮画像データを順に読み取りながら、ブロック符号140中の識別子符号170に該当する符号語パターンを探索し、識別子符号170が見つかるたびにブロック数カウンタをカウントアップしていく。ブロック数カウンタは、切り出し部30の処理がラインの先頭に達するごとにクリアする。したがって、ブロック数カウンタは、切り出し部30が処理しているブロック(現在ブロックと呼ぶ)のライン先頭から見た時の番号(x座標)を示す。ブロック数カウンタの値が切り出し開始ブロックの番号に達した時点でステップS24の探索を終了すればよい。探索終了時点では、切り出し部30は、圧縮原画像データ上で、切り出し開始ライン上の切り出し開始ブロックを見ていることになる。   Next, the cutout unit 30 finds a cutout start block (that is, a block corresponding to the left end of the cutout range) by searching the block identifier code 170 in order from the top of the cutout start line (S24). That is, for example, the cutout unit 30 searches the code word pattern corresponding to the identifier code 170 in the block code 140 while sequentially reading the compressed image data of the line, and counts the block number counter every time the identifier code 170 is found. I will go up. The block number counter is cleared every time the processing of the cutout unit 30 reaches the head of the line. Therefore, the block number counter indicates the number (x coordinate) of the block processed by the cutout unit 30 (referred to as the current block) when viewed from the line head. The search in step S24 may be terminated when the value of the block number counter reaches the number of the cut start block. At the end of the search, the cutout unit 30 sees the cutout start block on the cutout start line on the compressed original image data.

次に切り出し部30は、現在ラインの各ブロック符号を順に読み進め、現在ブロック(切り出し開始ブロック)から切り出し終了ブロック(すなわち切り出し範囲の右端に該当するブロック)までの各ブロック符号140を切り出す(S26)。現在ラインから切り出されたブロック符号140群は、画像処理装置のメモリ(図示省略)上に確保された切り出し画像域へと追加される。   Next, the cutout unit 30 sequentially reads each block code of the current line, and cuts out each block code 140 from the current block (cutout start block) to the cutout end block (that is, the block corresponding to the right end of the cutout range) (S26). ). The block code 140 group cut out from the current line is added to the cut-out image area secured on the memory (not shown) of the image processing apparatus.

なお、この追加に先立ち、切り出し画像領域には、切り出し結果の圧縮画像を表すヘッダ符号210(図6参照)が、例えば制御部28により作成され、格納されている。このヘッダ符号210には、切り出し結果の画像のサイズ(幅及び高さ)を画素数単位で表す情報が含まれる。この情報は、原画像データのサイズと、分割出力指示とから求めることができる。ステップS26で切り出されたブロック符号140群は、このヘッダ符号210の後に追加される。   Prior to this addition, a header code 210 (see FIG. 6) representing the compressed image of the cutout result is created and stored in the cutout image area, for example, by the control unit 28. The header code 210 includes information that represents the size (width and height) of the image as a cutout result in units of pixels. This information can be obtained from the size of the original image data and the divided output instruction. The block code 140 group cut out in step S26 is added after the header code 210.

次に切り出し部30は、ライン数カウンタが示す現在ラインが切り出し終了ライン(すなわち切り出し範囲の下端のライン)に達したか否かを判定する(S28)。現在ラインが切り出し終了ラインに達していなければ、現在ブロックから順に圧縮原画像データをスキャンしながら、例えば次のマーカー符号130を探索することで、次のラインに移動する(S30)。そして、当該ラインに対しステップS24〜S28の処理を行うことで、当該ライン上の切り出し範囲内のブロック符号140群を切り出し、切り出し画像領域へと追加する。   Next, the cutout unit 30 determines whether or not the current line indicated by the line number counter has reached the cutout end line (that is, the lower end line of the cutout range) (S28). If the current line has not reached the cut-out end line, for example, the next marker code 130 is searched while scanning the compressed original image data sequentially from the current block, and the next line is moved (S30). Then, by performing the processes of steps S24 to S28 on the line, the block code 140 group within the cutout range on the line is cut out and added to the cutout image area.

以上に説明したステップS24〜S30の処理を切り出し開始ラインから切り出し終了ラインまで繰り返すことで、メモリ上の切り出し画像領域に、切り出し範囲の圧縮画像データが形成される。切り出し部30は、切り出し画像領域内の圧縮画像データを切り出し結果として制御部28に渡す(S32)。   By repeating the processes of steps S24 to S30 described above from the cutout start line to the cutout end line, compressed image data of the cutout range is formed in the cutout image area on the memory. The cutout unit 30 passes the compressed image data in the cutout image area to the control unit 28 as a cutout result (S32).

図6は、切り出し画像領域内に形成される圧縮画像データのデータ構造の一例を示す。この例では、切り出された圧縮画像データ(ページ符号200)は、ヘッダ符号210と、各ラインのライン符号220−1,220−2,…,220−m(以下ライン符号220と総称。mは切り出しライン数)とを含む。そして、ライン符号220は、ブロック符号240−1,240−2,…,240−n(nは、1ラインあたりの切り出しブロック数)を含むが、マーカー符号130は含まない。マーカー符号130がなくても、ヘッダ情報に含まれる1ラインあたりの画素数の情報を参照すれば、復号結果の画素データをラインごとに配列することができるので、復号は可能である。   FIG. 6 shows an example of the data structure of the compressed image data formed in the cut-out image area. In this example, the cut out compressed image data (page code 200) includes a header code 210 and line codes 220-1, 220-2,..., 220-m of each line (hereinafter referred to as line code 220. m is a generic name). The number of cut lines). The line code 220 includes block codes 240-1, 240-2,..., 240-n (n is the number of cutout blocks per line), but does not include the marker code 130. Even if the marker code 130 is not provided, the pixel data of the decoding result can be arranged for each line by referring to the information on the number of pixels per line included in the header information, so that decoding is possible.

分割出力の場合、切り出し部30は、切り出し範囲(分割画像)ごとに、上に例示した切り出し処理を行えばよい。なお、この代わりに、メモリ上に4つの切り出し範囲のそれぞれに対応する切り出し画像領域を確保し、圧縮原画像データを先頭から末尾までスキャンする間に、各切り出し範囲に属するブロック符号140をそれぞれ対応する切り出し画像領域に追加していってもよい。このような処理によれば、圧縮原画像データを一度スキャンする間に、4つの分割画像が並列的に生成される。   In the case of divided output, the cutout unit 30 may perform the cutout process exemplified above for each cutout range (divided image). Instead of this, a cutout image area corresponding to each of the four cutout ranges is secured in the memory, and the block code 140 belonging to each cutout range is handled while the compressed original image data is scanned from the beginning to the end. May be added to the cut-out image area. According to such processing, four divided images are generated in parallel while the compressed original image data is scanned once.

以上に説明したように、この実施形態では、圧縮原画像データの分割は、識別子符号170(及び150)を探索してカウントすることで行われる。このような処理は、圧縮原画像データを復号するよりも計算コストがはるかに少なくて済む。このように、この実施形態では、圧縮原画像データを復号することなく、圧縮データのままで分割するのである。   As described above, in this embodiment, the division of the compressed original image data is performed by searching for and counting the identifier codes 170 (and 150). Such processing requires much less computational cost than decoding the compressed original image data. As described above, in this embodiment, the compressed original image data is divided as it is without being decoded.

このように、この実施形態の画像処理装置は、圧縮原画像データを分割することで各分割画像の圧縮画像データを生成する。したがって、分割後の画像を圧縮しなくてよい。例えば、分割出力を行ったあと、分割の仕方(例えば分割単位の用紙サイズ)を変えて再度分割出力を行う場合でも、この実施形態では圧縮原画像データを分割し直すだけでよく、分割後の再圧縮の必要がない。   As described above, the image processing apparatus according to this embodiment generates compressed image data of each divided image by dividing the compressed original image data. Therefore, it is not necessary to compress the divided image. For example, even when dividing output is performed after changing the division method (for example, the paper size of the division unit), the compressed original image data only needs to be re-divided in this embodiment. There is no need to recompress.

なお、この実施形態の手法は、画像の分割出力のみならず、トリミング出力にも適用できる。トリミング出力の場合の制御部28の処理手順の一例を図7に示す。   Note that the method of this embodiment can be applied not only to divided output of an image but also to trimming output. An example of the processing procedure of the control unit 28 in the case of trimming output is shown in FIG.

トリミング出力の指示には、例えば、トリミング対象の位置的範囲(切り出し範囲)の指定が含まれる。切り出し範囲は、例えば原画像データにおける切り出し範囲の上端及び下端のy座標、と左端及び右端のx座標の組(各座標は画素単位)により表される。   The trimming output instruction includes, for example, designation of a positional range (cutout range) to be trimmed. The cutout range is represented by, for example, a set of the upper and lower y coordinates of the cutout range in the original image data and the left and right end x coordinates (each coordinate is a pixel unit).

このような切り出し範囲の指定を含むトリミング指示を受けると、制御部28は、その切り出し範囲をブロック単位に換算する(S40)。換算の仕方は分割出力の場合と同様でよい。なお、圧縮画像データの切り出しはブロック単位なので、原画像データ上での切り出し範囲もブロックのサイズ単位での指定となる。   When receiving the trimming instruction including the designation of the cutout range, the control unit 28 converts the cutout range into blocks (S40). The conversion method may be the same as in the case of divided output. Note that since the compressed image data is cut out in units of blocks, the cutout range on the original image data is also specified in units of block sizes.

次に制御部28は、切り出し部30に対し、圧縮原画像データからのその切り出し範囲に相当する部分の切り出しを指示する(S42)。この切り出し指示にはブロック単位で表された切り出し範囲の情報が含まれる。   Next, the control unit 28 instructs the cutout unit 30 to cut out a portion corresponding to the cutout range from the compressed original image data (S42). This cutout instruction includes information on the cutout range expressed in blocks.

制御部28は、この指示のあと、切り出し部30から切り出し範囲の圧縮画像データが渡されるのを待ち(S44)、その圧縮画像データを受け取ると、その圧縮画像データを画像伸長部32に渡して伸長させ、その伸長結果を印刷部34に印刷させる(S46)。   After this instruction, the control unit 28 waits for the compressed image data in the cutout range to be delivered from the cutout unit 30 (S44). When the compressed image data is received, the control unit 28 passes the compressed image data to the image decompression unit 32. The decompression result is printed on the printing unit 34 (S46).

この実施形態によれば、切り出し範囲を変えて再度トリミング出力を行う場合も、圧縮原画像データから切り出し範囲を切り出せばよく、切り出した画像データを再度圧縮する必要はない。   According to this embodiment, even when trimming output is performed again after changing the cutout range, the cutout range may be cut out from the compressed original image data, and the cutout image data need not be compressed again.

以上の実施形態では、ブロックのサイズは縦1画素×横k画素であったが、上述の構成及び処理手順の例から明らかなように、ブロックの縦サイズを複数画素とした場合でも、同様の処理が可能である。   In the above embodiment, the block size is 1 vertical pixel × horizontal k pixel. However, as is clear from the above-described configuration and processing procedure example, the same is true even when the vertical size of the block is a plurality of pixels. Processing is possible.

また、画像圧縮部22の圧縮方式は、上に例示したものに限らず、ブロック単位で圧縮を行い、かつ圧縮画像データのデータ形式が隣接するブロック同士の境界(ブロックの先頭でも、末尾でもよい)が検出可能なデータ形式であるものであればよい。   Further, the compression method of the image compression unit 22 is not limited to the above-described example, and compression is performed in units of blocks, and the data format of the compressed image data is the boundary between adjacent blocks (the head or the end of the block may be used). ) May be any data format that can be detected.

以上に説明した画像処理装置の演算処理部分は、例えば、汎用のコンピュータに上述の各機能モジュールの処理を表すプログラムを実行させることにより実現される。ここで、コンピュータは、例えば、ハードウエアとして、図8に示すように、CPU300等のマイクロプロセッサ、ランダムアクセスメモリ(RAM)302およびリードオンリメモリ(ROM)304等のメモリ(一次記憶)、HDD(ハードディスクドライブ)306を制御するHDDコントローラ308、各種I/O(入出力)インターフェイス310、ローカルエリアネットワークなどのネットワークとの接続のための制御を行うネットワークインタフェース312等が、たとえばバス314を介して接続された回路構成を有する。また、そのバス314に対し、例えばI/Oインターフェイス310経由で、CDやDVDなどの可搬型ディスク記録媒体に対する読み取り及び/又は書き込みのためのディスクドライブ316、フラッシュメモリなどの各種規格の可搬型の不揮発性記録媒体に対する読み取り及び/又は書き込みのためのメモリリーダライタ318、などが接続されてもよい。上に例示した各機能モジュールの処理内容が記述されたプログラムがCDやDVD等の記録媒体を経由して、又はネットワーク等の通信手段経由で、ハードディスクドライブ等の固定記憶装置に保存され、コンピュータにインストールされる。固定記憶装置に記憶されたプログラムがRAM302に読み出されCPU300等のマイクロプロセッサにより実行されることにより、上に例示した機能モジュール群が実現される。なお、それら機能モジュール群のうちの一部又は全部を、専用LSI(Large Scale Integration)、ASIC(Application Specific Integrated Circuit、特定用途向け集積回路)又はFPGA(Field Programmable Gate Array)等のハードウエア回路として構成してもよい。   The arithmetic processing part of the image processing apparatus described above is realized, for example, by causing a general-purpose computer to execute a program representing the processing of each functional module described above. Here, for example, as shown in FIG. 8, the computer includes, as hardware, a microprocessor such as a CPU 300, a memory (primary storage) such as a random access memory (RAM) 302 and a read-only memory (ROM) 304, an HDD ( An HDD controller 308 that controls a hard disk drive) 306, various I / O (input / output) interfaces 310, a network interface 312 that performs control for connection to a network such as a local area network, and the like are connected via a bus 314, for example. Circuit configuration. In addition, the bus 314 has various standards such as a disk drive 316 for reading from and / or writing to a portable disk recording medium such as a CD and a DVD and a flash memory via a I / O interface 310, for example. A memory reader / writer 318 for reading from and / or writing to the nonvolatile recording medium may be connected. A program in which the processing contents of each functional module illustrated above are described is stored in a fixed storage device such as a hard disk drive via a recording medium such as a CD or DVD, or via communication means such as a network, and stored in a computer. Installed. The program stored in the fixed storage device is read into the RAM 302 and executed by a microprocessor such as the CPU 300, whereby the functional module group exemplified above is realized. Some or all of these functional module groups are used as hardware circuits such as dedicated LSI (Large Scale Integration), ASIC (Application Specific Integrated Circuit), or FPGA (Field Programmable Gate Array). It may be configured.

実施形態における画像の分割出力処理を説明するための図である。It is a figure for demonstrating the division | segmentation output process of the image in embodiment. 実施形態で用いられる圧縮方式による圧縮データのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of the compression data by the compression system used by embodiment. 実施形態の画像処理装置の機能構成の例を示す図である。It is a figure which shows the example of a function structure of the image processing apparatus of embodiment. 分割出力指示を受けた場合の制御部の処理手順の例を示すフローチャートである。It is a flowchart which shows the example of the process sequence of the control part at the time of receiving a division | segmentation output instruction | indication. 切り出し部の処理手順の例を示す図である。It is a figure which shows the example of the process sequence of a cutout part. 切り出し部が生成した部分画像の圧縮データの構造の例を示す図である。It is a figure which shows the example of the structure of the compression data of the partial image which the cutout part produced | generated. トリミング指示を受けた場合の制御部の処理手順の例を示すフローチャートである。It is a flowchart which shows the example of the process sequence of the control part at the time of receiving a trimming instruction | indication. コンピュータのハードウエア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of a computer.

符号の説明Explanation of symbols

20 画像入力部、22 画像圧縮部、24 記憶装置、26 指示受付部、28 制御部、30 切り出し部、32 画像伸長部、34 印刷部。   20 image input unit, 22 image compression unit, 24 storage device, 26 instruction reception unit, 28 control unit, 30 clipping unit, 32 image decompression unit, 34 printing unit.

Claims (4)

原画像データをあらかじめ定められたサイズのブロックごとに圧縮し、各ブロックの圧縮結果である各圧縮ブロックが前記原画像データにおけるブロック配列に対応する配列で並んだ圧縮原画像データを生成する圧縮手段と、
前記圧縮原画像データを記憶する記憶手段と、
前記原画像データから切り出すべき部分画像の位置的範囲を特定する部分特定情報の入力を受け付ける受付手段と、
前記配列に従って前記圧縮原画像データ中の各圧縮ブロックを認識していくことで、前記部分特定情報により特定される部分画像の位置的範囲に対応する前記圧縮原画像データ中の圧縮ブロック群の範囲を特定し、特定した範囲に属する圧縮ブロック群を前記圧縮原画像データから切り出すと共に、当該部分画像の幅及び高さを画素数単位で示すヘッダ情報と切り出した前記圧縮ブロック群とを含むデータを前記部分画像の圧縮データとして出力する切り出し手段と、
前記切り出し手段が出力した前記部分画像の圧縮データを伸長し、出力する伸長出力手段と、
を備える画像処理装置。
Compression means for compressing original image data for each block of a predetermined size and generating compressed original image data in which each compression block as a compression result of each block is arranged in an array corresponding to the block array in the original image data When,
Storage means for storing the compressed original image data;
Receiving means for receiving input of partial specifying information for specifying a positional range of a partial image to be cut out from the original image data;
By recognizing each compressed block in the compressed original image data according to the arrangement, the range of the compressed block group in the compressed original image data corresponding to the positional range of the partial image specified by the partial specifying information identify, with cut out compressed block group belonging to the specified range from the previous SL compressed original image data, and a said compression blocks cut out the header information indicating the width and height of the partial image in the pixel unit number data Cutting out means for outputting as compressed data of the partial image ,
Decompression output means for decompressing and outputting the compressed data of the partial image output by the clipping means;
An image processing apparatus comprising:
前記圧縮手段は、前記原画像データの各ブロックを、前記圧縮原画像データにおける当該ブロックの境界を示す境界符号と、当該ブロックの圧縮結果であるデータ符号と、を含む圧縮ブロックへと変換し、
前記切り出し手段は、前記圧縮原画像データから各圧縮ブロックの境界符号を検出することにより前記各圧縮ブロックを識別し、識別の結果に基づき前記切り出すべき部分画像の位置的範囲に対応する圧縮ブロック群の範囲を求める、
ことを特徴とする請求項1記載の画像処理装置。
The compression means converts each block of the original image data into a compression block including a boundary code indicating a boundary of the block in the compressed original image data and a data code which is a compression result of the block,
The clipping means identifies each compressed block by detecting a boundary code of each compressed block from the compressed original image data, and a compressed block group corresponding to the positional range of the partial image to be clipped based on the identification result Find the range of
The image processing apparatus according to claim 1.
前記受付手段は、前記部分特定情報として前記原画像データを分割出力する場合の分割単位の画像サイズに関する指定を受け付け、
前記切り出し手段は、前記部分特定情報が表す前記分割単位の画像サイズに基づき前記原画像データの分割結果である各部分画像の位置的範囲をそれぞれ特定し、特定した各部分画像の位置的範囲に対応する範囲の圧縮ブロック群を前記圧縮原画像データから切り出す、
ことを特徴とする請求項1記載の画像処理装置。
The accepting means accepts designation relating to an image size of a division unit when the original image data is divided and output as the part specifying information;
The cutout unit specifies a positional range of each partial image, which is a division result of the original image data, based on the image size of the division unit represented by the partial specifying information, and sets the positional range of each specified partial image. cutting the compressed blocks corresponding range of pre-Symbol compressed original image data,
The image processing apparatus according to claim 1.
コンピュータを、
原画像データをあらかじめ定められたサイズのブロックごとに圧縮し、各ブロックの圧縮結果である各圧縮ブロックが前記原画像データにおけるブロック配列に対応する配列で並んだ圧縮原画像データを生成する圧縮手段、
前記圧縮原画像データを記憶する記憶手段、
前記原画像データから切り出すべき部分画像の位置的範囲を特定する部分特定情報の入力を受け付ける受付手段、
前記配列に従って前記圧縮原画像データ中の各圧縮ブロックを認識していくことで、前記部分特定情報により特定される部分画像の位置的範囲に対応する前記圧縮原画像データ中の圧縮ブロック群の範囲を特定し、特定した範囲に属する圧縮ブロック群を前記圧縮原画像データから切り出すと共に、当該部分画像の幅及び高さを画素数単位で示すヘッダ情報と切り出した前記圧縮ブロック群とを含むデータを前記部分画像の圧縮データとして出力する切り出し手段、
前記切り出し手段が出力した前記部分画像の圧縮データを伸長し、出力する伸長出力手段、
として機能させるためのプログラム。
Computer
Compression means for compressing original image data for each block of a predetermined size and generating compressed original image data in which each compression block as a compression result of each block is arranged in an array corresponding to the block array in the original image data ,
Storage means for storing the compressed original image data;
Receiving means for receiving input of partial specifying information for specifying a positional range of a partial image to be cut out from the original image data;
By recognizing each compressed block in the compressed original image data according to the arrangement, the range of the compressed block group in the compressed original image data corresponding to the positional range of the partial image specified by the partial specifying information identify, with cut out compressed block group belonging to the specified range from the previous SL compressed original image data, and a said compression blocks cut out the header information indicating the width and height of the partial image in the pixel unit number data Cutting out means for outputting as compressed data of the partial image ,
Decompression output means for decompressing and outputting the compressed data of the partial image output by the clipping means;
Program to function as.
JP2008205701A 2008-08-08 2008-08-08 Image processing apparatus and program Active JP4720872B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008205701A JP4720872B2 (en) 2008-08-08 2008-08-08 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008205701A JP4720872B2 (en) 2008-08-08 2008-08-08 Image processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2010041675A JP2010041675A (en) 2010-02-18
JP4720872B2 true JP4720872B2 (en) 2011-07-13

Family

ID=42013679

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008205701A Active JP4720872B2 (en) 2008-08-08 2008-08-08 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP4720872B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011244031A (en) * 2010-05-14 2011-12-01 Fujifilm Corp Image data expansion device, image data compression device, and operation control method of both devices

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007251423A (en) * 2006-03-14 2007-09-27 Fujifilm Corp Image processing unit and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007251423A (en) * 2006-03-14 2007-09-27 Fujifilm Corp Image processing unit and method

Also Published As

Publication number Publication date
JP2010041675A (en) 2010-02-18

Similar Documents

Publication Publication Date Title
US8411955B2 (en) Image processing apparatus, image processing method and computer-readable medium
US8339619B2 (en) System and image processing method and apparatus for re-using and re-editing images
EP2264995B1 (en) Image processing apparatus, image processing method, and computer program
JP5132517B2 (en) Image processing apparatus and image processing method
JP5049921B2 (en) Image processing apparatus and image processing method
JP2010074540A (en) Image processing apparatus
JPWO2002054757A1 (en) Data encoding method and apparatus, and data encoding program
JP2008311792A (en) Device for encoding image and control method therefor
US8175401B2 (en) Image processing apparatus and computer readable medium storing program therefor
JP4720872B2 (en) Image processing apparatus and program
JP3901514B2 (en) Image compression method, decompression method and program
US20090244559A1 (en) Image rasterizing apparatus and image rasterizing method
JP4802853B2 (en) Image processing apparatus and image processing program
JP2003189108A (en) Image compression method
JP4556582B2 (en) Image printing device
JP5599033B2 (en) Image processing apparatus and method, and program
JP3683667B2 (en) Printer controller
JP3249647B2 (en) Image processing device
JP3657081B2 (en) Printer controller
JP2003198856A (en) Image compression method, decompression method thereof, and program thereof
JP5526596B2 (en) Image processing apparatus and image processing program
JP4973540B2 (en) Image processing apparatus and image processing program
KR20200032648A (en) Image decompressing apparatus, control method thereof, and computer program
JP2009194748A (en) Image decoding apparatus and control method thereof
JP2010278650A (en) Image compression processor, image forming apparatus, computer program, recording medium, and image compression method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101102

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101227

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110308

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110321

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

Free format text: PAYMENT UNTIL: 20140415

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150