JP2010042679A - Printer, and image data processing method in the printer - Google Patents

Printer, and image data processing method in the printer Download PDF

Info

Publication number
JP2010042679A
JP2010042679A JP2009224162A JP2009224162A JP2010042679A JP 2010042679 A JP2010042679 A JP 2010042679A JP 2009224162 A JP2009224162 A JP 2009224162A JP 2009224162 A JP2009224162 A JP 2009224162A JP 2010042679 A JP2010042679 A JP 2010042679A
Authority
JP
Japan
Prior art keywords
image
data
processing
image data
band
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
JP2009224162A
Other languages
Japanese (ja)
Inventor
Takashi Nitta
隆志 新田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2009224162A priority Critical patent/JP2010042679A/en
Publication of JP2010042679A publication Critical patent/JP2010042679A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer performing printing by directly reading image data photographed by a digital cameral or the like which processes print data including a plurality of images in the main scanning direction as in the case of index print with a limited memory capacity. <P>SOLUTION: Line data for one line are read from image data obtained by reading an original image data file of one of a plurality of images to be printed by one time main scanning and restoring the read original image data file, subjected to prescribed image processing and copied to a band buffer. This processing is repeated for all of the plurality of images to be printed by one time main scanning and when data of all images for that line are collected in the band buffer, similar processing is repeated for the next line, and when data of the number of lines required for one band are collected for all images, these data are printed. This processing is repeated for each band, thus printing a plurality of images arranged in the main scanning direction. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、ディジタルカメラ等で撮影しメモリカード等に格納された画像データを直接(ホストを介することなく)読み込んで印刷を行うプリンタに関し、特に、いわゆるインデクス印刷等を行う場合の当該プリンタにおける画像データの処理技術に関する。   The present invention relates to a printer that performs printing by directly reading (without going through a host) image data that has been captured by a digital camera or the like and stored in a memory card or the like, and in particular, an image in the printer when performing so-called index printing or the like. It relates to data processing technology.

近年、ディジタルカメラが、その性能の向上に伴って、普及してきている。従来、かかるディジタルカメラで撮影した画像データを印刷する場合には、PCカード等に格納された画像データを一旦パーソナルコンピュータ(以下、パソコンと略称する)に読み込ませた後、そのパソコンに接続されたプリンタで印刷していた。   In recent years, digital cameras have become widespread as their performance has improved. Conventionally, when printing image data taken with such a digital camera, image data stored in a PC card or the like is once read into a personal computer (hereinafter abbreviated as a personal computer) and then connected to the personal computer. I was printing with a printer.

このようにディジタルカメラで撮影した画像データをパソコンを介してプリンタで印刷する場合には、従来からの銀塩写真に比べ、ユーザ自らより自由な編集が可能になるというメリットがあり、例えば、ユーザは、パソコン上の専用のアプリケーションソフトを用いれば、ディジタルカメラを用いて撮影した多数の画像のうち複数枚分の写真を1枚の印刷用紙(以下、単に用紙という)に印刷するインデクス印刷等を自由に行うことができる。   In this way, when image data captured by a digital camera is printed by a printer via a personal computer, there is an advantage that the user can edit more freely than a conventional silver halide photograph. Using dedicated application software on a personal computer, index printing, etc., that prints multiple photos of a large number of images taken with a digital camera on a single sheet of paper (hereinafter simply referred to as paper) Can be done freely.

かかるインデクス印刷では、例えば、縦横(5×4)で20枚分程の多数の画像を絵葉書サイズの用紙に、それぞれ縮小した形で印刷するので、パソコンに読み込んだ画像データに対し縮小等の処理が必要であり、ワークメモリも大きな容量が必要となるので、上述したアプリケーションソフトでは、パソコン上、いわゆるスプールファイルを作成した上で、その都度必要な画像の一部を取得し、縮小等の処理を行うようにしている。   In such index printing, for example, a large number of images of about 20 sheets in length and breadth (5 × 4) are printed on a postcard size paper in a reduced form, so that processing such as reduction of image data read into a personal computer is performed. The above-mentioned application software creates a so-called spool file on the personal computer, acquires a part of the required image each time, and performs processing such as reduction. Like to do.

以下、上記の如きパソコン上のアプリケーションソフトを用い、通常のインクジェットプリンタを介してインデクス印刷を行う場合を例にとって、図8及び図9を参照しつつ、具体的に説明する。尚、このインクジェットプリンタは、バンドバッファを備え、バンドごとにイメージデータを展開して印刷を行うものとする。   Hereinafter, a specific example will be described with reference to FIGS. 8 and 9 by taking as an example a case where index printing is performed via a normal inkjet printer using application software on a personal computer as described above. This ink jet printer is provided with a band buffer and develops image data for each band to perform printing.

例示のインデクス印刷は、図8に示すように、絵葉書サイズ或いはA4サイズ等の用紙1に、20枚分のそれぞれの縮小画像A1,A2,A3,・・・を、インクジェットプリンタにおける主走査方向Xを横方向、紙送り方向(副走査方向)Yを縦方向とした場合に、横方向に4枚、縦方向に5枚を印刷する場合である。このように、多数の画像を1枚の用紙に印刷するインデクス印刷は、1つの画像を1枚の用紙に印刷する通常の印刷に比べて、より多くの処理が必要となるので、印刷のスループットも長くなる。   In the example index printing, as shown in FIG. 8, 20 reduced images A1, A2, A3,... Are printed on a postcard size or A4 size paper 1 in the main scanning direction X in the ink jet printer. Is the horizontal direction, and the paper feed direction (sub-scanning direction) Y is the vertical direction, 4 sheets are printed in the horizontal direction and 5 sheets are printed in the vertical direction. In this way, index printing that prints a large number of images on one sheet requires more processing than normal printing that prints one image on one sheet. Also gets longer.

図9を用いて、パソコン上のアプリケーションソフトによりインデクス印刷を行う場合のパソコン及びプリンタにおける処理のフローについて説明しておく。まず、ディジタルカメラで撮影され、JPEG方式等により圧縮されたファイル形式でPCカード等に格納された画像データのうち、上記インデクス印刷に必要なすべての画像データを伸長(圧縮されていない元の画像データに復元)し(S1)、復元した画像データのスプールファイルを作成し、ハードディスクに保存しておく(S2)。   The flow of processing in the personal computer and the printer when index printing is performed by application software on the personal computer will be described with reference to FIG. First, among the image data that is taken with a digital camera and stored in a PC card or the like in a file format compressed by the JPEG method or the like, all the image data necessary for the index printing is decompressed (the original uncompressed image) Data is restored) (S1), a spool file of the restored image data is created and stored in the hard disk (S2).

そして、バンドごとに、当該バンドに必要な画像の一部を取得し(S3)た上で、縮小等の処理を行う(S4)。その後、バンドバッファにコピー(展開)する(S5)。以上のS3〜S5の処理をすべての画像(図8の例では、A1,A2,A3,A4、即ちA,B,C,D)について行う(S6でNo)。そして、当該バンドに必要な画像データがすべてそろった場合(S6でYes)には、バンドバッファに展開したイメージデータの印刷を行う(S7)。そして、このインデクス印刷に必要な画像データのすべてのバンドについてS3〜S7の処理を繰り返し(S8でNo)、すべてのバンドの処理が完了したら(S8でYes)、インデクス印刷における1段目の画像(図8の、画像A1,A2,A3,A4、即ちA,B,C,D)の印刷が終了する。   For each band, after obtaining a part of the image necessary for the band (S3), processing such as reduction is performed (S4). Thereafter, it is copied (developed) in the band buffer (S5). The above processes of S3 to S5 are performed for all the images (A1, A2, A3, A4, that is, A, B, C, D in the example of FIG. 8) (No in S6). If all the image data necessary for the band is available (Yes in S6), the image data developed in the band buffer is printed (S7). Then, the processing of S3 to S7 is repeated for all the bands of the image data necessary for the index printing (No in S8), and when the processing of all the bands is completed (Yes in S8), the first-stage image in the index printing. (Images A1, A2, A3, and A4 in FIG. 8, that is, A, B, C, and D) are printed.

インデクス印刷等、主走査方向に複数の画像(図8の例では、4枚の画像)を含む場合、パソコン上のアプリケーションソフトでは、以上のように印刷データを生成・処理し、プリンタに転送してその印刷を行っている。   When multiple images (4 images in the example of FIG. 8) are included in the main scanning direction, such as index printing, the application software on the personal computer generates and processes the print data as described above and transfers it to the printer. Printing.

最近では、パソコンと略同様の画像データ処理機能を備え、ディジタルカメラ等で撮影しメモリカード等に格納された画像データを直接(ホストを介することなく)読み込んで所定の画像処理を行った上で印刷を行うプリンタ(以下、フォトプリンタと呼ぶ)が実用化されている。   Recently, it has an image data processing function that is almost the same as that of a personal computer. The image data captured by a digital camera or the like and stored in a memory card or the like is directly read (without going through a host) and subjected to predetermined image processing. Printers that perform printing (hereinafter referred to as photo printers) have been put into practical use.

このようなフォトプリンタの構成は、大きく分けると、従来のプリンタと同様の動作を行う印刷処理部と、メモリカード等から読み込んだ画像データに対しパソコンと同様の画像データ処理を行うフォト画像処理部とから成り、このフォトプリンタを用いれば、パソコンを必要とすることなくディジタルカメラで撮影した画像データを印刷することが可能となるので、大変便利である。従って、かかるフォトプリンタを安価に提供し得るようになれば、ディジタルカメラの解像度の高画質化に伴って、両者の利用がより一層進むものと思われる。   The configuration of such a photo printer can be broadly divided into a print processing unit that performs the same operation as a conventional printer, and a photo image processing unit that performs image data processing similar to a personal computer for image data read from a memory card or the like. If this photo printer is used, it is possible to print image data taken with a digital camera without requiring a personal computer, which is very convenient. Therefore, if such a photo printer can be provided at a low cost, it is considered that the use of both of them will further advance as the resolution of the digital camera becomes higher.

しかしながら、かかるフォトプリンタは、上述したように、パソコンと同様の画像データ処理機能と通常のプリンタの機能とが一体となっているので、全体としてのコスト等を考えると、フォトプリンタに内臓されるCPUの処理能力や速度、更には、ワークメモリとしてのRAMの容量は、自ずから制約を受ける。即ち、パソコンと同様の画像データ処理を行うといっても、このようなフォトプリンタが備えるCPUは、パソコンが備えるCPUに比べると、処理能力や速度の点で制限があり、例えば、画像データを一時的に蓄積しておくバッファメモリの容量にも限界がある。特に、上述したインデクス印刷等、多数の画像データをメモリ等に一時的に蓄積した上で縮小等の処理を行う必要がある場合には、バッファメモリ等の容量が間に合わない事態も考えられる。上述したパソコン上のアプリケーションソフトによりインデクス印刷を行う場合では、特に、最近のパソコンでは、大変高性能のCPUを備え、ワークメモリとしてのRAMの容量も十分であることが多く、また、スプールファイルの形式でハードディスクに保存しておくことも可能であるため、あまり問題にはならなかった。しかし、フォトプリンタでは、限られたメモリ資源の中で、処理のスループットも遅くしないで、インデクス印刷等多くの画像データ処理を伴う作業を行うというのは、難題である。   However, as described above, such a photo printer has an image data processing function similar to that of a personal computer integrated with a normal printer function. Therefore, considering the overall cost, the photo printer is built in the photo printer. The processing capacity and speed of the CPU and the capacity of the RAM as a work memory are naturally limited. That is, even if image data processing similar to that of a personal computer is performed, the CPU provided in such a photo printer is limited in terms of processing capability and speed compared to the CPU provided in the personal computer. There is a limit to the capacity of the buffer memory that is temporarily stored. In particular, when it is necessary to perform processing such as reduction after temporarily storing a large amount of image data in a memory or the like, such as the above-described index printing, there may be a situation where the capacity of the buffer memory or the like is not in time. When index printing is performed using the above-described application software on a personal computer, a recent personal computer often has a very high-performance CPU and a sufficient amount of RAM as a work memory. Since it was possible to save it in the hard disk in the format, it was not a problem. However, in a photo printer, it is a difficult task to perform a lot of image data processing such as index printing without slowing down the processing throughput in a limited memory resource.

従来、フォトプリンタにおける構成及び画像データ処理の制御方法等の点から、このような問題を解決するための有効な提案は、ほとんどなされていなかった。   Conventionally, there have been few effective proposals for solving such problems from the viewpoint of the configuration of the photo printer and the control method of image data processing.

本発明の目的は、ディジタルカメラ等で撮影しメモリカード等に格納された画像データを直接(ホストを介することなく)読み込んで所定の画像処理を行った上で印刷を行うプリンタにおいて、限られたメモリ容量等の中でも、上述したインデクス印刷等、主走査方向に複数の画像を含む印刷データを処理することを可能としたプリンタ及びその画像データの処理方法を提供することにある。   An object of the present invention is limited in a printer that performs printing after directly reading image data captured by a digital camera or the like and stored in a memory card or the like (without going through a host) and performing predetermined image processing. An object of the present invention is to provide a printer capable of processing print data including a plurality of images in the main scanning direction, such as the above-described index printing, and a method for processing the image data.

上記目的達成のため、本発明では、例えば、上述したインデクス印刷等の場合に、主走査方向に並ぶそれぞれの画像について、原画像データファイルを読み込んで復元した各画像データから、その都度、nライン(nは1又はイメージのバンド高さ×1/縮小率で決まる、当該バンドに必要なライン数)分のデータを読み出し、縮小処理等を行ってバンドバッファに保持し、1バンド分の処理が終了したら、そのバンドのバンドデータを印刷処理部に送って印刷するようにしている。   In order to achieve the above object, according to the present invention, for example, in the case of the index printing described above, for each image arranged in the main scanning direction, n lines are read from each image data read and restored from the original image data file. (N is 1 or the band height of the image × 1 / the number of lines necessary for the band, which is determined by the reduction ratio) Data is read out, reduced, etc., held in the band buffer and processed for one band. When finished, the band data of the band is sent to the print processing unit for printing.

これにより、インデクス印刷等の主走査方向に複数の画像を含む場合でも、プリンタ内で画像データの処理が可能となり、ホスト上のアプリケーションによらなくても、かかるインデクス印刷等を行うことができる。特に、バンド単位でバッファリングを行って印刷するので、バッファメモリとしては数メガバイトの容量を確保するだけでも、かかるインデクス印刷等が可能である。   Accordingly, even when a plurality of images are included in the main scanning direction such as index printing, the image data can be processed in the printer, and the index printing can be performed without depending on the application on the host. In particular, since buffering is performed for each band and printing is performed, such index printing or the like is possible only by securing a capacity of several megabytes as a buffer memory.

即ち、本発明によれば、請求項1記載のように、1回の主走査で印刷するイメージデータに含まれる各々の部分的イメージを提供する圧縮された原画像ファイルデータに対して、復元を含む所定の画像処理を施してビットイメージ形式の画像データを生成する画像データ処理手段と、前記画像データ処理手段により、必要に応じて前記原画像ファイルデータからその都度画像データを生成し、関連する部分を読み出して利用するように制御を行う制御手段とを有することを特徴とするプリンタが得られる。   That is, according to the present invention, as described in claim 1, decompression is performed on compressed original image file data that provides each partial image included in image data to be printed in one main scan. Image data processing means for generating predetermined image processing to generate image data in bit image format, and the image data processing means generates image data from the original image file data as needed, and related A printer having control means for performing control so as to read and use the portion is obtained.

以上説明したように、本発明によれば、ディジタルカメラなどで撮影して得られた画像を、ホスト上のアプリケーションソフトを用いることなく、プリンタで直接、印刷できる上に、例えば主走査方向に複数枚並べて印刷するような場合でも画像データの処理が可能となる。
従って、メモリ等の容量をいたずらに増やすこと無しに、多数枚のインデクス印刷等も可能となるので、使い勝手の良いプリンタをより安価に提供し得る。
As described above, according to the present invention, an image obtained by photographing with a digital camera or the like can be directly printed by a printer without using application software on the host, and a plurality of images can be printed in the main scanning direction, for example. Even when printing sheets side by side, it is possible to process image data.
Accordingly, since it is possible to print a large number of sheets without unnecessarily increasing the capacity of the memory or the like, it is possible to provide a user-friendly printer at a lower cost.

本発明の第1の実施形態に係るプリンタの概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of a printer according to a first embodiment of the present invention. 本発明の第1の実施形態に係るプリンタの外観構成を示す図である。1 is a diagram illustrating an external configuration of a printer according to a first embodiment of the present invention. 本発明の第1の実施形態に係るプリンタの動作を説明するためのフローチャートである。3 is a flowchart for explaining the operation of the printer according to the first embodiment of the present invention. 本発明の第2の実施形態に係るプリンタの動作を説明するためのフローチャートである。6 is a flowchart for explaining an operation of a printer according to a second embodiment of the present invention. 本発明の第3の実施形態に係るプリンタの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the printer which concerns on the 3rd Embodiment of this invention. 用紙を横向きに置いた時に正位置となる、回転処理を伴うインデクス印刷を示す図である。It is a figure which shows the index printing with a rotation process which becomes a normal position when a paper is put sideways. 本発明の第3の実施形態に係るプリンタの動作を説明するためのフローチャートである。10 is a flowchart for explaining an operation of a printer according to a third embodiment of the present invention. 用紙を縦向きに置いた時に正位置となる、回転処理のないインデクス印刷を示す図である。FIG. 6 is a diagram illustrating index printing without rotation processing that is in a normal position when a sheet is placed vertically. 従来のパソコン上のアプリケーションを用いて図8に示したインデクス印刷を行う場合の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in the case of performing the index printing shown in FIG. 8 using the application on the conventional personal computer.

以下、本発明の諸実施形態を図面を参照して説明する。まず、本発明の第1の実施形態について説明する。本実施形態に係るプリンタは、上述したように、ディジタルカメラ等で撮影しメモリカード等に格納された画像データを直接(ホストを介することなく)読み込んで所定の画像処理を行った上で印刷を行うフォトプリンタであり、シリアルのインクジェット方式のプリンタである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. First, a first embodiment of the present invention will be described. As described above, the printer according to the present embodiment reads image data captured by a digital camera or the like and stored in a memory card or the like directly (without passing through a host), performs predetermined image processing, and performs printing. The photo printer is a serial ink jet printer.

図1は、本発明の第1の実施形態に係るプリンタの概略構成を示すブロック図である。本実施形態のプリンタは、大きく分けると、フォト画像処理部11と、印刷処理部13とから成る。   FIG. 1 is a block diagram showing a schematic configuration of a printer according to the first embodiment of the present invention. The printer of this embodiment is roughly composed of a photo image processing unit 11 and a print processing unit 13.

印刷処理部13は、図示しないインクジェット方式の印字ヘッド、キャリッジ機構、紙送り機構等を含むプリントエンジン部や、プリントエンジン部の制御等を行う印刷制御部等を含んでおり、従来のプリンタと同様の動作を行う部分である。   The print processing unit 13 includes a print engine unit including an inkjet print head (not shown), a carriage mechanism, a paper feed mechanism, and the like, a print control unit for controlling the print engine unit, and the like. This is the part that performs the operation.

フォト画像処理部11は、例えば、メモリカード10から読み込んだ画像データに対しパソコンと同様の画像データ処理を行う部分であり、画像データ処理部112と、バンドバッファ116と、画像データ制御部118とを有する。   The photo image processing unit 11 is a part that performs image data processing similar to that of a personal computer, for example, on image data read from the memory card 10, and includes an image data processing unit 112, a band buffer 116, an image data control unit 118, and the like. Have

画像データ処理部112は、メモリカード10から読み込んだ原画像データファイルに対して、復元を含む所定の画像処理を施してビットイメージ形式の画像データを生成する。即ち、画像データ処理部112は、ディジタルカメラ等で撮影された画像データを格納したメモリカード10内の原画像データファイルを読み込む原画像データファイル読み込み部112a、この原画像データファイル読み込み部112aで読み込まれた、JPEG圧縮等されている画像データファイルを復元(伸長)する復元処理部112b、この復元処理部112bにより復元された画像データからn番目のラインデータを読み込むラインデータ読み込み部112c、ラインデータ読み込み部112cにより読み込まれたラインデータを縮小し又は拡大するリサイズ処理部112dと、従来はパソコン側(例えば、プリンタドライバ設定の画像補正機能)で行っていたコントラスト調整、明度調整、カラーバランス補正、彩度調整、記憶色再現、シャープネス向上、ノイズ軽減、輪郭補正等を行う画像補正部112eとを含んでいる。尚、メモリカード10内に格納された画像データは、例えばJPEG方式によって圧縮処理された画像データである。従って、この圧縮された画像データを画像データ読み込み部112aで読み込んだ後、復元(伸長)した上で他の所定の画像処理を施すために復元処理部112bが設けられている。また、本実施形態では、画像補正部112eは、上記の画像補正処理を、後述するように、上述したリサイズ処理部112dによるリサイズ処理後の画像がどのような大きさの画像となったかによって、リサイズ処理後の画像又はリサイズ処理前の画像のいずれかを用いて行うことができる。   The image data processing unit 112 performs predetermined image processing including restoration on the original image data file read from the memory card 10 to generate bit image format image data. That is, the image data processing unit 112 reads an original image data file reading unit 112a that reads an original image data file in the memory card 10 that stores image data captured by a digital camera or the like, and the original image data file reading unit 112a reads the original image data file. A restoration processing unit 112b that restores (decompresses) the image data file that has been JPEG compressed, a line data reading unit 112c that reads the nth line data from the image data restored by the restoration processing unit 112b, and line data A resizing processing unit 112d that reduces or enlarges line data read by the reading unit 112c, and contrast adjustment, brightness adjustment, color balance correction, and the like conventionally performed on the personal computer side (for example, an image correction function set in a printer driver) Saturation adjustment, memory Reproduction, sharpness improvement, noise reduction, and an image correcting unit 112e for performing contour correction, and the like. Note that the image data stored in the memory card 10 is image data compressed by the JPEG method, for example. Accordingly, the compressed image data is read by the image data reading unit 112a and then restored (expanded), and then a restoration processing unit 112b is provided for performing other predetermined image processing. Further, in the present embodiment, the image correction unit 112e performs the above-described image correction process depending on the size of the image after the resize process performed by the above-described resize process unit 112d, as described later. This can be performed using either the image after the resizing process or the image before the resizing process.

バンドバッファ116は、印刷に先立って1バンド分の画像データを保持するものである。   The band buffer 116 holds image data for one band prior to printing.

画像データ制御部118は、画像データ処理部112にビットイメージ形式の画像データを生成させ、必要に応じて該画像データの関連する部分を読み出して利用するための制御を行う。   The image data control unit 118 causes the image data processing unit 112 to generate image data in the bit image format, and performs control for reading out and using related portions of the image data as necessary.

図2は、本実施形態のプリンタの外観構成を示すものであり、同図に示すように、外観構成上は、従来のインクジェットプリンタ等と大きく異なるところはないが、メモリカード10が差し込まれるカード挿入部21が設けられている。その他、各種操作上の設定等を行う操作パネル部23、用紙の給紙部25と排出部27等が設けられている。   FIG. 2 shows the external configuration of the printer according to the present embodiment. As shown in FIG. 2, the external configuration is not significantly different from a conventional inkjet printer or the like, but the card into which the memory card 10 is inserted. An insertion portion 21 is provided. In addition, an operation panel unit 23 for performing various operational settings, a paper feed unit 25, a discharge unit 27, and the like are provided.

以上の構成を有する本実施形態のプリンタの動作について、以下、図面を参照しつつ説明する。ここでは、従来例との関連で図8に示したようなインデクス印刷を行うものとし、そのため画像のリサイズ処理としての縮小処理を必要とする場合について説明する。本実施形態は、インデクス印刷等、主走査方向に複数の画像(図8の例では、4枚の画像)を含む場合に、ライン単位で画像データを生成・処理し、バンド単位で印刷処理を行うことを特徴とする。   The operation of the printer of the present embodiment having the above configuration will be described below with reference to the drawings. Here, a case will be described in which index printing as shown in FIG. 8 is performed in relation to the conventional example, and therefore reduction processing as image resizing processing is required. In the present embodiment, when a plurality of images (four images in the example of FIG. 8) are included in the main scanning direction, such as index printing, image data is generated and processed in units of lines, and printing processing is performed in units of bands. It is characterized by performing.

さて、ユーザは、まず、図2に示した本実施形態のプリンタのカード挿入部21にメモリカード10を挿入すると共に、操作パネル部23によって、印刷を行うための種々の指示設定を行う。尚、ここでは、A4の用紙を縦長に用いる、図8に示したようなインデクス印刷の設定もしたものとする。   First, the user inserts the memory card 10 into the card insertion unit 21 of the printer of the present embodiment shown in FIG. 2 and performs various instruction settings for printing by the operation panel unit 23. Here, it is assumed that the A4 sheet is used in portrait orientation and the index printing setting as shown in FIG. 8 is also set.

これ以降の動作を、図3のフローチャートによって説明する。まず、原画像データファイル読み込み部112aは、インデクス印刷すべき画像のうち、メモリカード10内に格納された、図8の画像A1に対応する原画像データファイルを読み込む(ステップS30)。尚、メモリカード10に格納されている原画像データファイルは、JPEG等の方式による圧縮画像データであるので、それを復元処理部112bが復元(伸長)処理する(ステップS31)。ラインデータ読み込み部112cは、この復元された画像データから1番目のラインデータを読み込み(ステップS32)、リサイズ処理部112dがリサイズ処理として縮小処理を行い、画像補正部112eが必要な補正処理を行う(ステップS33)。この縮小等の処理をされたラインデータは、バンドバッファ116にコピーされる(ステップS34)。そして、以上の1番目のラインデータの処理を、主走査方向に存在する残りのすべての画像(図8の、画像A2,A3,A4)についても行い(ステップS35でNo)、すべての画像について終了したら(ステップS35でYes)、今度は2番目のラインデータの処理を行う(ステップS36、ステップS37でNo)。即ち、再び、図8の画像A1に対応する原画像データファイルを読み込み、復元した後、2番目のラインデータを読み込み、縮小等の処理を行った上で、縮小等の処理をされたラインデータをバンドバッファ116にコピー(ステップS30〜S34)し、同様に、画像A2,A3,A4のそれぞれの2番目のラインデータについても行う(ステップS35でNo)。以上の処理を、1バンドに必要なライン数の画像データがそろうまで繰り返し(ステップS37でNo)、1バンドに必要なライン数の画像データがすべてバンドバッファ116にコピーされたら(ステップS37でYes)、バンドデータの印刷処理を行う(ステップS38)。かかる処理を、主走査方向の1段目に存在する画像(図8の、画像A1,A2,A3,A4)を印刷するのに必要なすべてのバンドについて行い(ステップS39でNo)、すべてのバンドの処理が終わったら(ステップS39でYes)、1段目の画像(図8の、画像A1,A2,A3,A4)の印刷が完了する。   The subsequent operation will be described with reference to the flowchart of FIG. First, the original image data file reading unit 112a reads the original image data file corresponding to the image A1 in FIG. 8 stored in the memory card 10 among the images to be index printed (step S30). Since the original image data file stored in the memory card 10 is compressed image data by a method such as JPEG, the restoration processing unit 112b restores (decompresses) it (step S31). The line data reading unit 112c reads the first line data from the restored image data (step S32), the resize processing unit 112d performs a reduction process as a resize process, and the image correction unit 112e performs a necessary correction process. (Step S33). The line data subjected to the reduction process is copied to the band buffer 116 (step S34). Then, the above processing of the first line data is performed on all remaining images (images A2, A3, and A4 in FIG. 8) existing in the main scanning direction (No in step S35), and all the images are processed. If completed (Yes in step S35), the second line data is processed (No in step S36 and step S37). That is, again, the original image data file corresponding to the image A1 in FIG. 8 is read and restored, then the second line data is read, the reduction process is performed, and then the reduction line data is processed. Is copied to the band buffer 116 (steps S30 to S34), and similarly, the second line data of each of the images A2, A3, and A4 is also performed (No in step S35). The above processing is repeated until the image data of the number of lines necessary for one band is obtained (No in step S37), and all the image data of the number of lines necessary for one band is copied to the band buffer 116 (Yes in step S37). ), Band data print processing is performed (step S38). This process is performed for all the bands necessary to print the image (images A1, A2, A3, A4 in FIG. 8) existing in the first row in the main scanning direction (No in step S39), and all the bands are printed. When the band processing is completed (Yes in step S39), the printing of the first-stage image (images A1, A2, A3, A4 in FIG. 8) is completed.

本実施形態は、このように、処理対象のそれぞれの画像について、その都度、メモリカード10内の原画像データファイルを読み込み、復元した画像データから、1ライン分のデータを読み出して縮小等の処理を行い、バンドバッファ116に保持し、1バンド分のライン数の処理が終了したら、そのバンドのバンドデータを印刷処理部13に送って印刷するようにしている。かかる方法で、インデクス印刷等の主走査方向に複数の画像を含む場合でも、プリンタ内で画像データの処理が可能となり、ホスト上のアプリケーションによらなくても、かかるインデクス印刷等を行うことができる。特に、バンド単位でバッファリングを行って印刷するので、バッファメモリとしては数メガバイトの容量を確保するだけでも、かかるインデクス印刷等が可能である。   In this embodiment, in this way, for each image to be processed, the original image data file in the memory card 10 is read each time, one line of data is read from the restored image data, and processing such as reduction is performed. When the processing for the number of lines for one band is completed, the band data of that band is sent to the print processing unit 13 for printing. With this method, even when a plurality of images are included in the main scanning direction such as index printing, the image data can be processed in the printer, and such index printing can be performed without depending on the application on the host. . In particular, since buffering is performed for each band and printing is performed, such index printing or the like is possible only by securing a capacity of several megabytes as a buffer memory.

次に、本発明の第2の実施形態について説明する。本実施形態に係るプリンタの概略構成は、上述した第1の実施形態のものと同様であるので、図1及び図2を参照することとして、その説明は省略する。   Next, a second embodiment of the present invention will be described. Since the schematic configuration of the printer according to this embodiment is the same as that of the first embodiment described above, description thereof will be omitted with reference to FIGS. 1 and 2.

第1の実施形態では、当該ラインについて、1段目の画像(図8の、画像A1,A2,A3,A4)のすべてを処理してから、次のラインを、同様に、1段目の画像(図8の、画像A1,A2,A3,A4)のすべてを処理する、即ち、そのラインについてすべての画像の処理を終えてから、つぎのラインに進むのに対し、この第2の実施形態では、当該ラインについて1段目の画像のうち画像A1を処理したら、次は画像A1の次のラインを処理する、というように同じ画像について1バンド分のライン数だけ、まず処理してから次の画像に進むことを特徴とする。   In the first embodiment, after processing all of the first-stage images (images A1, A2, A3, and A4 in FIG. 8) for the line, the next line is similarly converted to the first-stage image. This second implementation is for processing all the images (images A1, A2, A3, A4 in FIG. 8), that is, processing all the images for that line before proceeding to the next line. In the embodiment, after processing the image A1 in the first stage image for the line, the next line of the image A1 is processed next, so that the same image is first processed by the number of lines for one band. It is characterized by proceeding to the next image.

ユーザによるインデクス印刷の設定後の動作を、図4のフローチャートによって説明する。まず、原画像データファイル読み込み部112aは、インデクス印刷すべき画像のうち、メモリカード10内に格納された、図8の画像A1に対応する原画像データファイルを読み込む(ステップS40)。尚、メモリカード10に格納されている画像データは、JPEG等の方式による圧縮画像データであるので、それを復元処理部112bが復元(伸長)処理する(ステップS41)。ラインデータ読み込み部112cは、この復元された画像データから1ライン分のデータを読み込み(ステップS42)、リサイズ処理部112dがリサイズ処理として縮小処理を行い、画像補正部112eが必要な補正処理を行う(ステップS43)。この縮小等の処理をされたラインデータは、バンドバッファ116にコピーされる(ステップS44)。そして、以上のラインデータの処理を、当該画像(図8の画像A1)の1バンド分のライン数だけ行い(ステップS45でNo)、1バンド分のライン数について終了したら(ステップS45でYes)、今度は図8の画像A2に対応する原画像データファイルを読み込み、復元した画像データから1ライン分のデータを読み込み、縮小等の処理を行って、バンドバッファ116にコピーし(ステップS40〜S44)、同様に、当該画像(図8の画像A2)の1バンド分のライン数だけ行う(ステップS45でNo)というように、主走査方向に並ぶ画像A1,A2,A3,A4のすべての画像についての1バンド分の処理が終わるまで行い(ステップS46でNo)、画像A1〜A4の1バンド分の処理が終ったら(ステップS46でYes)、当該バンドデータの印刷処理を行う(ステップS47)。以上の処理を、各画像の必要なバンド数だけ繰り返し(ステップS48でNo)、すべてのバンドの処理が終われば(ステップS48でYes)、1段目の画像(図8の、画像A1,A2,A3,A4)の印刷が完了する。   The operation after the user sets index printing will be described with reference to the flowchart of FIG. First, the original image data file reading unit 112a reads the original image data file corresponding to the image A1 in FIG. 8 stored in the memory card 10 among the images to be index printed (step S40). Since the image data stored in the memory card 10 is compressed image data by a method such as JPEG, the restoration processing unit 112b restores (decompresses) it (step S41). The line data reading unit 112c reads data for one line from the restored image data (step S42), the resize processing unit 112d performs a reduction process as a resize process, and the image correction unit 112e performs a necessary correction process. (Step S43). The line data subjected to the reduction process is copied to the band buffer 116 (step S44). Then, the above line data processing is performed for the number of lines for one band of the image (image A1 in FIG. 8) (No in step S45), and when the number of lines for one band is completed (Yes in step S45). This time, the original image data file corresponding to the image A2 in FIG. 8 is read, the data for one line is read from the restored image data, and the data is reduced and copied to the band buffer 116 (steps S40 to S44). Similarly, all the images A1, A2, A3, A4 arranged in the main scanning direction are performed as many times as the number of lines for one band of the image (image A2 in FIG. 8) (No in step S45). Until the processing for one band is completed (No in step S46), and when the processing for one band of images A1 to A4 is completed (Y in step S46) s), it performs a printing process of the band data (step S47). The above processing is repeated for the required number of bands of each image (No in step S48), and when all the bands are processed (Yes in step S48), the first-stage image (images A1 and A2 in FIG. 8). , A3, A4) is completed.

本実施形態でも、このように、処理対象のそれぞれの画像について、その都度、メモリカード10内の原画像データファイルを読み込み、復元した画像データからラインごとにデータを読み出し、縮小等の処理を行ってバンドバッファ116に保持し、1バンド分のライン数の処理が終了したら、そのバンドのバンドデータを印刷処理部13に送って印刷するようにしている。かかる方法で、インデクス印刷等の主走査方向に複数の画像を含む場合でも、プリンタ内で画像データの処理が可能となり、ホスト上のアプリケーションによらなくても、かかるインデクス印刷等を行うことができる。特に、バンド単位でバッファリングを行って印刷するので、バッファメモリとしては数メガバイトの容量を確保するだけでも、かかるインデクス印刷が可能である。   Also in this embodiment, in this way, for each image to be processed, the original image data file in the memory card 10 is read each time, the data is read for each line from the restored image data, and processing such as reduction is performed. When the processing of the number of lines for one band is completed, the band data of that band is sent to the print processing unit 13 for printing. With this method, even when a plurality of images are included in the main scanning direction such as index printing, the image data can be processed in the printer, and such index printing can be performed without depending on the application on the host. . In particular, since buffering is performed in units of bands, such index printing is possible only by securing a capacity of several megabytes as a buffer memory.

次に、本発明の第3の実施形態に係るプリンタについて、図5〜図7を参照しつつ述べる。本実施形態のプリンタの基本構成も、上述した第1の実施形態のものと略同様であり、同様の部分には同様の参照符号を付して、その詳しい説明は省略する。即ち、本発明の第3の実施形態のプリンタは、図5に示すように、フォト画像処理部41と、印刷処理部13とから成る。印刷処理部13は、上述した第1の実施形態のものと全く同様である。   Next, a printer according to a third embodiment of the present invention will be described with reference to FIGS. The basic configuration of the printer of this embodiment is also substantially the same as that of the first embodiment described above, and the same reference numerals are given to the same parts, and detailed description thereof is omitted. That is, the printer according to the third embodiment of the present invention includes a photo image processing unit 41 and a print processing unit 13 as shown in FIG. The print processing unit 13 is exactly the same as that of the first embodiment described above.

フォト画像処理部41は、第1の実施形態のフォト画像処理部11と略同様に、例えば、メモリカード10から読み込んだ画像データに対しパソコンと同様の画像データ処理を行う部分であり、画像データ処理部412と、バンドバッファ416と、画像データ制御部418とを有するが、本実施形態では、更に、タイトル選択部420を有している。   The photo image processing unit 41 is a part that performs image data processing similar to that of a personal computer, for example, on image data read from the memory card 10, as in the photo image processing unit 11 of the first embodiment. A processing unit 412, a band buffer 416, and an image data control unit 418 are included. In the present embodiment, a title selection unit 420 is further included.

フォト画像処理部41内の画像データ処理部412は、第1の実施形態の画像データ処理部112と同様に、原画像データファイル読み込み部412a、復元処理部412b、ラインデータ読み込み部412c、リサイズ処理部412eと、画像補正部412fとを含むが、本実施形態では、更に、後述する各画像を90度回転させたインデクス印刷等、画像データを回転させる必要のある場合に、回転処理を行う回転処理部412dを備えている。   Similar to the image data processing unit 112 in the first embodiment, the image data processing unit 412 in the photo image processing unit 41 is an original image data file reading unit 412a, a restoration processing unit 412b, a line data reading unit 412c, and a resizing process. In this embodiment, the rotation is further performed when the image data needs to be rotated, such as index printing in which each image described later is rotated 90 degrees, in this embodiment. A processing unit 412d is provided.

バンドバッファ416は、第1の実施形態のバンドバッファ116と同様に、印刷に先立って1バンド分の画像データを保持するものである。   Similar to the band buffer 116 of the first embodiment, the band buffer 416 holds image data for one band prior to printing.

画像データ制御部418は、画像データ処理部412にビットイメージ形式の画像データを生成させ、必要に応じて該画像データの関連する部分を読み出して利用するための制御を行う。   The image data control unit 418 causes the image data processing unit 412 to generate image data in the bit image format, and performs control for reading out and using related portions of the image data as necessary.

ところで、インデクス印刷を行う場合等に、ディジタルカメラで撮影した画像とは別の、図8に示したようなタイトル(この場合「INDEX BANNER」)も同時に印刷することが多い。本実施形態のプリンタは、このような場合において、あらかじめ印刷するタイトル形式を複数用意しておき、いずれのタイトルを付すかを選択し得るタイトル選択部420も有している。タイトル選択部420の機能等の詳細については後述する。   By the way, when performing index printing, a title as shown in FIG. 8 (in this case, “INDEX BANNER”), which is different from an image taken by a digital camera, is often printed at the same time. In such a case, the printer according to the present embodiment also has a title selection unit 420 that prepares a plurality of title formats to be printed in advance and can select which title to add. Details of the function and the like of the title selection unit 420 will be described later.

ここで、以上に述べた本実施形態のプリンタの動作について説明しておく。   Here, the operation of the printer of this embodiment described above will be described.

図6は、インデクス印刷の他の例を示すものであり、用紙2を横向きに置いて見たときに正位置となるように画像配置して印刷する場合である。同図に示すA,B,C,・・・,Tの記号で示す如く、元の画像をそれぞれ90度回転させた状態で印刷されたものとなる。   FIG. 6 shows another example of index printing, which is a case where an image is arranged and printed so as to be in a normal position when the paper 2 is placed sideways. As indicated by the symbols A, B, C,..., T shown in the figure, the original images are printed in a state where they are rotated by 90 degrees.

以下、かかるインデクス印刷を行う場合を例にとって、本実施形態のプリンタの動作について、図7のフローチャートをも参照しつつ説明する。さて、ユーザは、まず、図2に示したカード挿入部21にメモリカード10を挿入すると共に、操作パネル部23によって、印刷を行うための種々の指示設定を行う。ここでは、図6に示したように、用紙を横向きに置いて見た時に正位置となるようなインデクス印刷の設定をしたものとする。   Hereinafter, the operation of the printer of this embodiment will be described with reference to the flowchart of FIG. 7 taking the case of performing such index printing as an example. The user first inserts the memory card 10 into the card insertion unit 21 shown in FIG. 2 and performs various instruction settings for printing using the operation panel unit 23. Here, as shown in FIG. 6, it is assumed that the index printing is set so that the paper is positioned in the normal position when the sheet is placed in the landscape orientation.

まず、原画像データファイル読み込み部412aは、メモリカード10内に格納されている1枚の画像(画像B1とする)について、その原画像データファイルを読み込む(ステップS70)。尚、メモリカード10内に格納されている画像データはJPEGなどによる圧縮データであるので、これを復元処理部412bが復元(伸張)処理する(ステップS71)。そして、この復元された画像データから、ラインデータ読み込み部412cが、1バンドに必要なライン数(イメージのバンド高さ×1/縮小率で決定されるので、予め分かっている)の画象(ライン)データを読み込む(ステップS72)。この読み込んだ画像(ライン)データに対し、回転処理部412dが画像を90度回転させるための回転処理を行い(ステップS73)、更に、リサイズ処理部412eが画像のリサイズ処理として縮小処理を施すと共に、画像補正部412fが必要な補正処理を行う(ステップS74)。   First, the original image data file reading unit 412a reads the original image data file for one image (referred to as image B1) stored in the memory card 10 (step S70). Since the image data stored in the memory card 10 is compressed data by JPEG or the like, the restoration processing unit 412b performs restoration (decompression) processing on this (step S71). Then, from this restored image data, the line data reading unit 412c has an image of the number of lines necessary for one band (which is known in advance since it is determined by the image band height × 1 / reduction ratio). Line) data is read (step S72). The rotation processing unit 412d performs a rotation process for rotating the image by 90 degrees with respect to the read image (line) data (step S73), and the resize processing unit 412e performs a reduction process as an image resize process. The image correction unit 412f performs necessary correction processing (step S74).

そして、ステップS74にて縮小等の処理をされた画像データから、当該1番目のバンドの画像データを得て、そのバンドデータをバンドバッファにコピーする(ステップS75)。   Then, the image data of the first band is obtained from the image data subjected to the reduction process in step S74, and the band data is copied to the band buffer (step S75).

次に、1つのバンド(この場合、1番目のバンド)を生成するために必要なすべての画像について、処理が終了したか否かを判断し(ステップS76)、終了していなければ(ステップS76でNo)、ステップS70に戻り、次の画像(画像B2とする)について、前述同様にステップS70〜S75までの処理を行う。即ち、原画像データファイルを読み込み、復元した後、必要なライン数の画像(ライン)データを読み込み、回転、縮小等の各処理を行い、縮小等した画像データから1つのバンド(1番目のバンド)分の画像データを得て、そのバンドデータをバンドバッファにコピーする。   Next, it is determined whether or not the processing has been completed for all the images necessary for generating one band (in this case, the first band) (step S76), and if not completed (step S76). No), the process returns to step S70, and the process from step S70 to S75 is performed on the next image (image B2) as described above. That is, after reading and restoring the original image data file, the image (line) data of the necessary number of lines is read, and each process such as rotation and reduction is performed, and one band (first band) is obtained from the reduced image data. ) Image data is obtained, and the band data is copied to the band buffer.

このようにして、1つのバンド分(この場合、1番目のバンド分)のバンドデータを生成するに必要なすべての画像(この場合、図6のようなインデクス印刷を行うのであるから4枚の画像B1〜B4について、ステップS70からS75までの処理を繰り返し、これにより、バンドバッファには印刷すべき1バンド分(1番目のバンド分)のバンドデータ(画像B1〜B4の画像データにおける、それぞれ1番目のバンドデータにより構成される)が生成され(ステップS76でYes)、そのバンドデータを印刷処理部13に送る(ステップS77)。   In this way, all images necessary for generating band data for one band (in this case, for the first band) (in this case, index printing as shown in FIG. With respect to the images B1 to B4, the processes from step S70 to S75 are repeated, whereby band data for one band (for the first band) to be printed in the band buffer (in the image data of the images B1 to B4, respectively) (Consisting of first band data) is generated (Yes in step S76), and the band data is sent to the print processing unit 13 (step S77).

そして、全てのバンドの処理が終了したか否かを判断して(ステップS78)、処理が終了していなければ(ステップS78でNo)、ステップS70に処理が房る。このとき、次のバンド(2番目のバンド)のバンドデータを作るために、前述したステップS70からS75までの処理を画像B1〜B4についてそれぞれ行ってから、2番目のバンドデータを得ている。この2番目のバンドデータを印刷処理部に送った後、3番目のバンドデータを作る処理に入るが、このときも、ステップS70からS75までの処理を、画像B1〜B4についてそれぞれ行ってから、3番目のバンドデータを得る。以上の処理を全バンドの処理が終わるまで繰り返し、全バンドの処理が終わると(ステップS78でYes)、用紙2の主走査方向Xに一列に並んでいる画像B1〜B4についての印刷が完了する。   Then, it is determined whether or not the processing for all the bands has been completed (step S78). If the processing has not been completed (No in step S78), the processing returns to step S70. At this time, in order to create band data of the next band (second band), the processing from steps S70 to S75 described above is performed for each of the images B1 to B4, and then the second band data is obtained. After the second band data is sent to the print processing unit, the third band data is created. At this time, the processes from step S70 to S75 are performed for the images B1 to B4, respectively. Obtain third band data. The above processing is repeated until the processing of all the bands is completed. When the processing of all the bands is completed (Yes in step S78), the printing of the images B1 to B4 aligned in the main scanning direction X of the paper 2 is completed. .

以上のように、本実施形態では、主走査方向に並んだ画像B1〜B4のそれぞれについて、メモリカード10内の原画像データファイルを読み込んで復元した画像データから、イメージのバンド高さ×1/縮小率で決定される、当該バンドに必要なライン数分の画像(ライン)データを読み込み、回転・縮小等の処理を行ってバンドバッファに保持し、画像B1〜B4の1バンド分の処理が終了したら、そのバンドのバンドデータを印刷処理部13に送って印刷し、以後、バンドごとに同様の処理を繰り返して、画像B1〜B4の印刷を行うようにしている。かかる方法で、インデクス印刷等の主走査方向に複数の画像を含む場合でも、プリンタ内で画像データの処理が可能となり、ホスト上のアプリケーションによらなくても、かかるインデクス印刷等を行うことができる。特に、バンド単位でバッファリングを行って印刷するので、バッファメモリとしては数メガバイトの容量を確保するだけでも、かかるインデクス印刷が可能である。   As described above, in the present embodiment, for each of the images B1 to B4 arranged in the main scanning direction, the image band height × 1/1 / from the image data read and restored from the original image data file in the memory card 10. The image (line) data corresponding to the number of lines necessary for the band, which is determined by the reduction ratio, is read, rotated / reduced, etc., held in the band buffer, and processed for one band of the images B1 to B4. When finished, the band data of the band is sent to the print processing unit 13 for printing, and thereafter, the same processing is repeated for each band to print the images B1 to B4. With this method, even when a plurality of images are included in the main scanning direction such as index printing, the image data can be processed in the printer, and such index printing can be performed without depending on the application on the host. . In particular, since buffering is performed in units of bands, such index printing is possible only by securing a capacity of several megabytes as a buffer memory.

ところで、ディジタルカメラで撮影された画像を90度回転処理する場合には、図6に示したようなタイトル「INDEX BANNER」にも同様の回転処理が施される。一方、例えば、図8に示したように、画像を回転させずに、元の状態のままでインデクス印刷する場合もある。この場合、用紙1の紙送り方向Yを縦方向としたとき、その用紙1を縦方向に置いて見ることで正位置となるように、用紙1の主走査方向Xに沿ってタイトルが印刷される。   By the way, when the image photographed with the digital camera is rotated by 90 degrees, the same rotation process is performed on the title “INDEX BANNER” as shown in FIG. On the other hand, for example, as shown in FIG. 8, there is a case where the index printing is performed in the original state without rotating the image. In this case, when the paper feed direction Y of the paper 1 is set to the vertical direction, the title is printed along the main scanning direction X of the paper 1 so that the paper 1 is positioned in the vertical direction and becomes the normal position. The

これに対して、図6に示したように、元の画像を90度回転させて印刷する場合は、タイトルも90度回転させ、用紙2の紙送り方向Yを縦方向としたとき、その用紙2を横方向に置いて見ることで正位置となるように、用紙2の紙送り方向Yに沿ってタイトルが印刷される。   On the other hand, as shown in FIG. 6, when the original image is rotated by 90 degrees and printed, the title is also rotated by 90 degrees and the paper feed direction Y of the paper 2 is set to the vertical direction. The title is printed along the paper feed direction Y of the paper 2 so that the position 2 becomes the normal position when viewed in the horizontal direction.

このように、画像を回転処理する場合は、それに合わせて、タイトルも回転させた状態で印刷する必要が生じる。本実施形態では、前述したように、タイトル選択部420を有し、このタイトル選択部420では、処理を効率化するために、回転処理前のタイトルと、そのタイトルを90度回転させた状態のタイトルの両方を用意しておき、元の画像の印刷に関する回転処理の有無に応じて、回転処理前のタイトルと90度回転させた状態のタイトルのいずれかを選択し、印刷処理部13に送る。即ち、タイトル選択部420は、回転処理部412dによって回転処理がなされたか否かを示す情報を受け取って、それに応じたタイトルを選択し、その結果を印刷処理部13に送る。   As described above, when the image is rotated, it is necessary to print the title while being rotated. In this embodiment, as described above, the title selection unit 420 has the title before the rotation process and the title rotated by 90 degrees in order to improve the processing efficiency. Both titles are prepared, and either the title before the rotation process or the title rotated by 90 degrees is selected and sent to the print processing unit 13 in accordance with the presence or absence of the rotation process related to the printing of the original image. . That is, the title selection unit 420 receives information indicating whether or not the rotation processing has been performed by the rotation processing unit 412d, selects a title corresponding to the information, and sends the result to the print processing unit 13.

このように、2通りのタイトルを用意しておけば、回転処理する場合としない場合とで、それに対応したタイトルを選択すればよいので、画像を回転処理する場合でも、タイトルまで回転させる処理を行う必要がなくなり、処理が簡略化される。   In this way, if two kinds of titles are prepared, it is only necessary to select a title corresponding to the case where rotation processing is performed, and the case where rotation processing is performed. There is no need to do so, and the process is simplified.

更に、本実施形態では、画像補正部412fは、画像データに対して画像補正処理を施す場合、前述したように、リサイズ処理後の画像がどのような大きさの画像となったかによって、リサイズ処理後の画像又はリサイズ処理前の画像のいずれかを用いて画像補正処理を行う。つまり、画像補正処理の処理量を少なくするために、小さい方の画像、即ち、画素数の少ない方の画像を用いて行う。従って、元の画像を拡大処理して印刷する場合は、元の画像を用いて画像補正を施し、反対に元の画像を縮小処理して印刷する場合は、縮小後の画像に対して画像補正を施す。具体的には、画像補正部412fは、リサイズ処理部412eによるリサイズ処理情報を受け取って、拡大処理の場合は、リサイズ処理前の画像データを用いて画像補正処理を行い、縮小処理の場合は、リサイズ処理部412eによるリサイズ処理後の画像データを用いて画像補正処理を行う。このように、画素数の少ない画像を用いて画像補正を施すことにより、画像補正の場合のデータ処理量を少なくすることができる。   Furthermore, in the present embodiment, when performing image correction processing on image data, the image correction unit 412f performs resizing processing depending on what size the image after the resizing processing is, as described above. Image correction processing is performed using either a subsequent image or an image before resizing processing. That is, in order to reduce the amount of image correction processing, the smaller image, that is, the image with the smaller number of pixels is used. Therefore, when the original image is enlarged and printed, image correction is performed using the original image. Conversely, when the original image is reduced and printed, image correction is performed on the reduced image. Apply. Specifically, the image correction unit 412f receives the resize processing information from the resize processing unit 412e, performs an image correction process using the image data before the resize process in the case of the enlargement process, and in the case of the reduction process, Image correction processing is performed using the image data after the resizing processing by the resizing processing unit 412e. Thus, by performing image correction using an image with a small number of pixels, the amount of data processing in the case of image correction can be reduced.

10…メモリカード、11…フォト画像処理部、41…フォト画像処理部、13…印刷処理部、112…画像データ処理部、412…画像データ処理部、116…バンドバッファ、416…バンドバッファ、118…画像データ制御部、418…画像データ制御部、112a…原画像データファイル読み込み部、412a…原画像データファイル読み込み部、112b…復元処理部、412b…復元処理部、112c…ラインデータ読み込み部、412c…ラインデータ読み込み部、112d…リサイズ処理部、412d…回転処理部、112e…画像補正部、412e…リサイズ処理部、412f…画像補正部、21…カード挿入部、23…操作パネル部、25…用紙の給紙部、27…用紙の排出部、420…タイトル選択部。   DESCRIPTION OF SYMBOLS 10 ... Memory card, 11 ... Photo image processing part, 41 ... Photo image processing part, 13 ... Print processing part, 112 ... Image data processing part, 412 ... Image data processing part, 116 ... Band buffer, 416 ... Band buffer, 118 Image data control unit 418 Image data control unit 112a Original image data file reading unit 412a Original image data file reading unit 112b Restoration processing unit 412b Restoration processing unit 112c Line data reading unit 412c ... Line data reading unit, 112d ... Resize processing unit, 412d ... Rotation processing unit, 112e ... Image correction unit, 412e ... Resize processing unit, 412f ... Image correction unit, 21 ... Card insertion unit, 23 ... Operation panel unit, 25 ... sheet feeding section, 27 ... sheet ejection section, 420 ... title selection section.

Claims (11)

1回の主走査で印刷するイメージデータに含まれる各々の部分的イメージを提供する圧縮された原画像ファイルデータに対して、復元を含む所定の画像処理を施してビットイメージ形式の画像データを生成する画像データ処理手段と、
前記画像データ処理手段により、必要に応じて前記原画像ファイルデータからその都度画像データを生成し、関連する部分を読み出して利用するように制御を行う制御手段とを有することを特徴とするプリンタ。
Bit image format image data is generated by performing predetermined image processing including restoration on compressed original image file data that provides each partial image included in image data to be printed in one main scan. Image data processing means,
A printer comprising: control means for controlling the image data processing means to generate image data each time from the original image file data as needed, and to read out and use related portions.
請求項1記載のプリンタにおいて、前記原画像ファイルデータは、JPEG圧縮されていることを特徴とするプリンタ。   2. The printer according to claim 1, wherein the original image file data is JPEG compressed. 請求項2記載のプリンタにおいて、前記原画像ファイルデータは、複数枚の画像を含み、該複数枚の画像を1枚の印刷用紙に所定の配列で並べて印刷を行う場合であって、前記制御手段は、前記画像データ処理手段により、前記原画像ファイルデータからその都度画像データを復元し、該復元した画像データからn(nは1以上の整数)ライン分のデータを読み出して、他の所定の画像処理を施して前記n(nは1以上の整数)ライン分のビットイメージ形式の画像データを生成し、該n(nは1以上の整数)ライン分の画像データをバンドバッファに保持し、1バンド分の処理が終了したら、当該バンドのバンドデータを印刷するように制御することを特徴とするプリンタ。   3. The printer according to claim 2, wherein the original image file data includes a plurality of images, and the plurality of images are arranged and printed in a predetermined arrangement on one printing paper, and the control means The image data processing means restores image data from the original image file data each time, reads n (n is an integer of 1 or more) lines of data from the restored image data, Image processing is performed to generate image data in the bit image format for the n (n is an integer of 1 or more) lines, the image data for the n (n is an integer of 1 or more) lines is held in a band buffer, A printer that controls to print band data of a band when processing for one band is completed. 請求項3記載のプリンタにおいて、前記nは、1であることを特徴とするプリンタ。   4. The printer according to claim 3, wherein the n is 1. 請求項3記載のプリンタにおいて、前記nは、イメージのバンド高さ×1/縮小率で決まる、当該バンドに必要なライン数であることを特徴とするプリンタ。   4. The printer according to claim 3, wherein n is the number of lines necessary for the band, which is determined by the band height of the image × 1 / the reduction ratio. 請求項1〜5記載のプリンタにおいて、前記画像データ処理手段は、更に、前記所定の画像処理として、印刷する際に原画像を回転させて画像の向きを所定角度だけ変える回転処理を実行可能な回転処理部と、原画像を拡大又は縮小するリサイズ処理を実行可能なリサイズ処理部を有することを特徴とするプリンタ。   6. The printer according to claim 1, wherein the image data processing means can further execute a rotation process for rotating the original image and changing the orientation of the image by a predetermined angle when printing, as the predetermined image processing. A printer comprising: a rotation processing unit; and a resizing processing unit capable of executing a resizing process for enlarging or reducing an original image. 請求項6記載のプリンタにおいて、更に、原画像とは別のタイトルをも印刷可能に構成され、該タイトルを、少なくとも前記回転処理前用のタイトルと、該回転処理前用のタイトルを回転させたタイトルの2つ用意しておき、前記所定の画像処理として回転処理を実行するか否かに応じて、前記回転処理前用のタイトル又は前記回転させたタイトルのうち、いずれかを選択して印刷する手段を有することを特徴とするプリンタ。   7. The printer according to claim 6, wherein a title different from the original image can be printed, and the title is rotated at least with the title before the rotation process and the title before the rotation process. Two titles are prepared, and depending on whether or not the rotation processing is executed as the predetermined image processing, either the title before the rotation processing or the rotated title is selected and printed. A printer comprising means for performing 請求項6記載のプリンタにおいて、前記画像データ処理手段は、更に、前記所定の画像処理として、原画像に所定の補正処理を加える画像補正部を有し、前記リサイズ処理を実行した場合に、該画像補正部は、リサイズ前の画像とリサイズ後の画像のうち画素数のより少ない方を選択し、該選択した画像に対し前記所定の補正処理を加えることを特徴とするプリンタ。   7. The printer according to claim 6, wherein the image data processing means further includes an image correction unit that applies a predetermined correction process to the original image as the predetermined image process, and when the resizing process is executed, The printer according to claim 1, wherein the image correction unit selects an image having a smaller number of pixels among the image before resizing and the image after resizing, and adds the predetermined correction processing to the selected image. 圧縮された原画像ファイルデータを読み込んでビットイメージ形式の画像データを生成して印刷処理装置に送る処理を行う画像処理装置であって、前記印刷処理装置による1回の主走査で印刷するイメージデータに含まれる各々の部分的イメージを提供する前記圧縮された原画像ファイルデータに対して、復元を含む所定の画像処理を施してビットイメージ形式の画像データを生成する画像データ処理部と、
前記画像データ処理部により、必要に応じて前記原画像ファイルデータからその都度画像データを生成し、関連する部分を読み出して利用するように制御を行う主制御部とを有することを特徴とする画像処理装置。
An image processing device that reads compressed original image file data, generates bit image format image data, and sends the image data to a print processing device, wherein the image data is printed in one main scan by the print processing device. An image data processing unit that performs predetermined image processing including restoration on the compressed original image file data that provides each partial image included in the image data to generate bit image format image data;
An image having a main control unit that controls the image data processing unit to generate image data each time from the original image file data as needed, and to read and use related portions. Processing equipment.
所定の記憶媒体にそれぞれファイルデータとして格納された複数枚の画像を読み込んで1枚の印刷用紙に所定の配列で並べて印刷するプリンタにおける画像データの処理方法であって、
主走査方向に並べて印刷するそれぞれの画像について、圧縮された原画像ファイルデータを読み込む原画像の読み込みステップと、
該読み込んだ原画像データを復元する復元ステップと、
該復元した原画像データからn(nは1以上の整数)ライン分のデータを読み出し、該n(nは1以上の整数)ライン分のデータに対し所定の画像処理を行う画像処理ステップと、
該所定の画像処理を行ったn(nは1以上の整数)ライン分のデータをバンドバッファに保持するバッファリングステップとを有し、
主走査方向に並べて印刷する全画像について少なくとも前記バンドバッファに1バンド分のバンドデータがそろうまで、前記原画像の読み込みステップ、復元ステップ、画像処理ステップ、及びバッファリングステップを繰り返して実行することを特徴とするプリンタにおける画像データの処理方法。
A method for processing image data in a printer that reads a plurality of images each stored as file data in a predetermined storage medium, and prints the images arranged in a predetermined arrangement on a single print sheet,
For each image to be printed side by side in the main scanning direction, an original image reading step for reading compressed original image file data;
A restoration step for restoring the read original image data;
An image processing step of reading out data for n (n is an integer of 1 or more) lines from the restored original image data, and performing predetermined image processing on the data of the n (n is an integer of 1 or more) lines;
A buffering step of holding data for n (n is an integer of 1 or more) lines subjected to the predetermined image processing in a band buffer;
The original image reading step, restoration step, image processing step, and buffering step are repeatedly executed until at least one band of band data is stored in the band buffer for all images to be printed side by side in the main scanning direction. A method of processing image data in a printer.
圧縮された原画像ファイルデータを読み込んで印刷可能なプリンタにおいて、該プリンタは、処理対象となる画像データを複数のバンドに分割してバンドデータを得て、該バンドデータを用いて印刷処理する方式である場合の該プリンタを制御するプログラムを記録した記録媒体であって、該プログラムは、
主走査方向に並べて印刷するそれぞれの画像について、圧縮された原画像ファイルデータを読み込む処理と、
該読み込んだ原画像データを復元する処理と、
該復元した原画像データからn(nは1以上の整数)ライン分のデータを読み出し、該n(nは1以上の整数)ライン分のデータに対して行う所定の画像処理と、
該所定の画像処理を行ったn(nは1以上の整数)ライン分のデータをバンドバッファに保持する処理とを有し、
主走査方向に並べて印刷する全画像について少なくとも前記バンドバッファに1バンド分のバンドデータがそろうまで、前記原画像の読み込み、復元、画像処理、及びバッファリングを繰り返して実行させるものであることを特徴とするプログラムを記録した記録媒体。
In a printer capable of reading and printing compressed original image file data, the printer obtains band data by dividing image data to be processed into a plurality of bands, and performs print processing using the band data A recording medium on which a program for controlling the printer is recorded.
For each image to be printed side by side in the main scanning direction, a process of reading the compressed original image file data,
Processing for restoring the read original image data;
Predetermined image processing to read out data of n (n is an integer of 1 or more) lines from the restored original image data, and to perform processing on the data of the n (n is an integer of 1 or more) lines;
A process of holding data for n (n is an integer of 1 or more) lines subjected to the predetermined image processing in a band buffer,
The original image is read, restored, image processed, and buffered repeatedly until at least one band of data is stored in the band buffer for all images printed side by side in the main scanning direction. A recording medium on which the program is recorded.
JP2009224162A 1998-09-16 2009-09-29 Printer, and image data processing method in the printer Pending JP2010042679A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009224162A JP2010042679A (en) 1998-09-16 2009-09-29 Printer, and image data processing method in the printer

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP26212898 1998-09-16
JP2009224162A JP2010042679A (en) 1998-09-16 2009-09-29 Printer, and image data processing method in the printer

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP24644099A Division JP4415359B2 (en) 1998-09-16 1999-08-31 Image processing apparatus and printer

Publications (1)

Publication Number Publication Date
JP2010042679A true JP2010042679A (en) 2010-02-25

Family

ID=42014435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009224162A Pending JP2010042679A (en) 1998-09-16 2009-09-29 Printer, and image data processing method in the printer

Country Status (1)

Country Link
JP (1) JP2010042679A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0296878A (en) * 1988-10-03 1990-04-09 Nec Off Syst Ltd Picture processor
JPH07125374A (en) * 1993-11-02 1995-05-16 King Jim Co Ltd Layout indication device
JPH0993376A (en) * 1995-09-26 1997-04-04 Matsushita Electric Ind Co Ltd Digital copying machine
JPH09130590A (en) * 1995-10-30 1997-05-16 Canon Inc Facsimile equipment and facsimile transmission method
JPH09297840A (en) * 1996-05-08 1997-11-18 Fuji Xerox Co Ltd Image processor
JPH10229544A (en) * 1997-02-14 1998-08-25 Canon Inc Image processing unit, its control method, image processing system, output device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0296878A (en) * 1988-10-03 1990-04-09 Nec Off Syst Ltd Picture processor
JPH07125374A (en) * 1993-11-02 1995-05-16 King Jim Co Ltd Layout indication device
JPH0993376A (en) * 1995-09-26 1997-04-04 Matsushita Electric Ind Co Ltd Digital copying machine
JPH09130590A (en) * 1995-10-30 1997-05-16 Canon Inc Facsimile equipment and facsimile transmission method
JPH09297840A (en) * 1996-05-08 1997-11-18 Fuji Xerox Co Ltd Image processor
JPH10229544A (en) * 1997-02-14 1998-08-25 Canon Inc Image processing unit, its control method, image processing system, output device and storage medium

Similar Documents

Publication Publication Date Title
US7982902B2 (en) Printer, image processing device, image processing method, and recording medium
JP4948854B2 (en) Image printing system and external device
JP4244027B2 (en) Image processing apparatus, image forming apparatus, and digital still camera printing system
JP4415359B2 (en) Image processing apparatus and printer
EP1528788B1 (en) Picture image outputting method and photograph finishing system using the method
JP2006080632A (en) Digital still camera, printer, digital still camera printing system, control method and program therefor
JP2010042679A (en) Printer, and image data processing method in the printer
JP2004284368A (en) Printer and image data processing method in the printer
JP2004338410A (en) Printer and method for processing image data in printer
JP2004338411A (en) Printer and method for processing image data in printer
JP4229578B2 (en) Image forming apparatus
JP4363287B2 (en) Image processing device
JP4438888B2 (en) Image forming apparatus
JP2007094973A (en) Print processing system
JP4559157B2 (en) Photo printing device
JP4409614B2 (en) Image forming apparatus
JP2000280563A (en) Method, apparatus and system for printing image
JP4383083B2 (en) Printer
JP2003211747A (en) Imaging apparatus
JP2003182165A (en) Printer and its control method
JP2001270162A (en) Imaging apparatus and method for outputting image data
JP2003179742A (en) Image storage device
JP2003256159A (en) Printer and method of storing printing information
JP2005138423A (en) Synthesized date character deleting/printing type digital photo automatic vending machine
JP2003333314A (en) Image processing apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100709

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100810