JP2007079895A - Image processing apparatus, printer, and printing method - Google Patents

Image processing apparatus, printer, and printing method Download PDF

Info

Publication number
JP2007079895A
JP2007079895A JP2005266396A JP2005266396A JP2007079895A JP 2007079895 A JP2007079895 A JP 2007079895A JP 2005266396 A JP2005266396 A JP 2005266396A JP 2005266396 A JP2005266396 A JP 2005266396A JP 2007079895 A JP2007079895 A JP 2007079895A
Authority
JP
Japan
Prior art keywords
image
correlation
image data
images
processing
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.)
Withdrawn
Application number
JP2005266396A
Other languages
Japanese (ja)
Inventor
Katsuhito Suzuki
勝仁 鈴木
Yoichi Tanaka
洋一 田中
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 JP2005266396A priority Critical patent/JP2007079895A/en
Publication of JP2007079895A publication Critical patent/JP2007079895A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus which can perform the most suitable processing according to the characteristics of a stereoscopic image and a transformation image. <P>SOLUTION: This image processing apparatus has a correlation calculation means (an image processing program 221) which calculates correlation of a plurality of image data, and a printing data generation means (a printer driver program 223) which selects a first processing which produces half tone processing after fractionalized images obtained by fractionalization of a plurality of images respectively are arranged in order and are combined and generates printing data when correlation calculated by the correlation calculation means is no less than the prescribed threshold and which selects a second processing which combined images after fractionalizing images obtained by producing half tone processing to a plurality of images respectively and generates printing data when the correlation is less than the prescribed threshold. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像処理装置、印刷装置および印刷方法に関する。   The present invention relates to an image processing apparatus, a printing apparatus, and a printing method.

各種の印刷技術の中には、多数のシリンドリカル凸レンズ(以下、凸レンズとする。)が並列配置されたレンチキュラーレンズを具備するレンズシートの記録層に、印刷画像を印刷するものがある(特許文献1参照)。かかる印刷技術では、レンズシートの記録層に、凸レンズのピッチに対応させたストライプ状の細分化画像を多数並べて記録する。そして、細分化画像の種類に応じて、視認される画像が立体視されたり、見る角度により変化する画像(アニメーション)が表示されたりすることが可能となる。なお、かかる方式は、レンズシートに直接印刷を行うため、直描型と呼ばれている。   Among various printing technologies, there is one that prints a printed image on a recording layer of a lens sheet that includes a lenticular lens in which a large number of cylindrical convex lenses (hereinafter, convex lenses) are arranged in parallel (Patent Document 1). reference). In such a printing technique, a large number of stripe-shaped subdivided images corresponding to the pitch of the convex lenses are recorded side by side on the recording layer of the lens sheet. Then, depending on the type of the subdivided image, the image to be viewed can be viewed stereoscopically, or an image (animation) that changes depending on the viewing angle can be displayed. Such a method is called a direct drawing type because printing is directly performed on a lens sheet.

また、レンチキュラーレンズに対し、印刷物を別途貼り合わせ、立体視またはアニメーションとして見るための方式も存在する(特許文献2参照)。このように、レンチキュラーレンズに印刷物を貼り合わせる方式は、分離型と呼ばれている。   There is also a method for separately bonding a printed material to a lenticular lens and viewing it as a stereoscopic view or animation (see Patent Document 2). As described above, the method of attaching the printed material to the lenticular lens is called a separation type.

図21は、レンズシートを用いて立体的な画像(以下、立体画像とする。)を表示する方法を示している。この図に示すように、複数の凸レンズ2を有するレンズシート1の裏面には、1枚の画像を複数の短冊状の画像に分割して形成された複数の細分化画像3a1〜3a7と、当該画像とは異なる角度から撮影された他の画像を同様に複数の短冊状の画像に分割して形成された複数の細分化画像3b1〜3b7とが配置または印刷されている。   FIG. 21 shows a method of displaying a stereoscopic image (hereinafter referred to as a stereoscopic image) using a lens sheet. As shown in this figure, on the back surface of the lens sheet 1 having a plurality of convex lenses 2, a plurality of subdivided images 3a1 to 3a7 formed by dividing one image into a plurality of strip-shaped images, A plurality of subdivided images 3b1 to 3b7 formed by dividing another image taken from an angle different from the image into a plurality of strip-like images are arranged or printed.

このようなレンズシート1を観察した場合、右目ERには細分化画像3a1〜3a7からの光画像が入射され、左目ELには細分化画像3b1〜3b7からの光画像が入射される。この結果、右目ERと左目ELには角度が異なる2枚の画像が提示されるため、画像を立体的に見ることが可能となる。   When such a lens sheet 1 is observed, a light image from the subdivided images 3a1 to 3a7 is incident on the right eye ER, and a light image from the subdivided images 3b1 to 3b7 is incident on the left eye EL. As a result, since two images with different angles are presented to the right eye ER and the left eye EL, the images can be viewed three-dimensionally.

なお、アニメーション画像(以下、変化画像とする。)の場合には、凸レンズの長手方向が水平方向となるようにレンズシートを把持し、凸レンズの長手方向が軸となるようにしてレンズシートを回転させることにより、角度に応じていずれかの細分化画像が選択されて右目と左目に同時に細分化画像が入射される。この結果、角度に応じて画像が変化する。   In the case of an animation image (hereinafter referred to as a change image), the lens sheet is held so that the longitudinal direction of the convex lens is horizontal, and the lens sheet is rotated so that the longitudinal direction of the convex lens is an axis. By doing so, one of the subdivided images is selected according to the angle, and the subdivided images are incident simultaneously on the right eye and the left eye. As a result, the image changes according to the angle.

特許第3471930号公報(段落番号0066〜0076、図1、図5、図8、図9等参照)Japanese Patent No. 3471930 (see paragraph numbers 0066 to 0076, FIG. 1, FIG. 5, FIG. 8, FIG. 9 etc.) 特開2001−42462号公報(要約、段落番号0033他参照)Japanese Patent Laid-Open No. 2001-42462 (see abstract, paragraph number 0033, etc.)

ところで、レンズシートに画像を印刷するためには、複数の画像データを短冊状に細分化した後に合成するとともに、解像度変換処理、色変換処理、ハーフトーン処理等を施す必要がある。したがって、複数の画像に対してこれらの処理を実行することから、処理に時間を要するという問題点がある。   Incidentally, in order to print an image on a lens sheet, it is necessary to synthesize a plurality of image data after subdividing into strips, and to perform resolution conversion processing, color conversion processing, halftone processing, and the like. Therefore, since these processes are performed on a plurality of images, there is a problem that the process takes time.

また、立体画像と変化画像では、画像の特性が異なる。すなわち、立体画像では、同一の対象を異なる角度から眺めた場合の画像であるために画像間の相関性が高い。一方、変化画像では、対象が変化したり、対象が移動したりするために、画像間の相関性は低い。従来においては、このような画像の特性を考慮して、前述の処理をどのような順序で適用すべきかについては、明確にされていない。   In addition, the characteristics of the image are different between the stereoscopic image and the change image. That is, since the stereoscopic image is an image when the same object is viewed from different angles, the correlation between the images is high. On the other hand, in the change image, since the object changes or the object moves, the correlation between the images is low. Conventionally, it has not been clarified in what order the above-described processing should be applied in consideration of such image characteristics.

さらに、細分化画像を印刷する場合、ハーフトーン処理および細分化処理の順序によっては、インクのにじみが発生したり、粒状感が増したりする場合があるという問題点がある。   Furthermore, when printing a subdivided image, there is a problem that ink bleeding may occur or graininess may increase depending on the order of halftone processing and subdivision processing.

本発明は、上記の事情に基づきなされたもので、その目的とするところは、立体画像および変化画像の特性に応じた最適な処理を行うことが可能な画像処理装置、プリンタおよび印刷方法を提供しよう、とするものである。   The present invention has been made based on the above circumstances, and an object of the present invention is to provide an image processing apparatus, a printer, and a printing method capable of performing optimum processing according to characteristics of a stereoscopic image and a change image. I will try.

上述の目的を達成するため、本発明のプリンタは、一方向を長手とする複数のレンズが配置されているレンズシートに印刷画像を形成するために複数の画像データを処理する画像処理装置において、複数の画像データの相関性を算出する相関性算出手段と、相関性算出手段によって算出された相関性が所定の閾値以上である場合は、複数の画像をそれぞれ細分化して得られた細分化画像を順次並べて合成した後にハーフトーン処理を施して印刷データを生成する第1の処理を選択して実行し、相関性が所定の閾値未満である場合は、複数の画像のそれぞれに対してハーフトーン処理を施して得られた画像を細分化した後に合成して印刷データを生成する第2の処理を選択して実行する印刷データ生成手段と、を具備する。   In order to achieve the above-described object, a printer according to the present invention is an image processing apparatus that processes a plurality of image data to form a print image on a lens sheet in which a plurality of lenses having one longitudinal direction are arranged. Correlation calculating means for calculating the correlation of a plurality of image data, and subdivided images obtained by subdividing the plurality of images when the correlation calculated by the correlation calculating means is equal to or greater than a predetermined threshold If the correlation is less than a predetermined threshold value, the halftone process is performed for each of the plurality of images. Print data generating means for selecting and executing a second process for generating print data by subdividing the image obtained by performing the processing and then synthesizing the image.

このため、立体画像および変化画像の特性に応じた最適な処理を行うことが可能な画像処理装置を提供することができる。   For this reason, the image processing apparatus which can perform the optimal process according to the characteristic of a stereo image and a change image can be provided.

また、他の発明の画像処理装置は、上述の発明に加えて、印刷データ生成手段が、相関性算出手段によって算出された相関性が所定の閾値未満である場合であっても、画像の枚数が、レンズの幅を印字幅によって除することにより得られる最大視差数を上回るときは、第1の処理を選択するようにしている。このため、画像の枚数が、レンズの幅を印字幅によって除することにより得られる最大視差数を上回るときは、画像単位でハーフトーン処理を施すと、インクのにじみが発生したり、粒状感が増加したりする場合があるが、そのような事態の発生を防止できる。   In addition to the above-described invention, the image processing apparatus according to another aspect of the invention may be configured so that the print data generation unit includes the number of images even when the correlation calculated by the correlation calculation unit is less than a predetermined threshold. However, when the maximum number of parallaxes obtained by dividing the lens width by the print width is exceeded, the first processing is selected. For this reason, if the number of images exceeds the maximum number of parallaxes obtained by dividing the lens width by the print width, halftone processing can be performed on an image basis to cause ink bleeding or graininess. Although it may increase, such a situation can be prevented.

また、他の発明の画像処理装置は、上述の発明に加えて、印刷データ生成手段の閾値が、印刷画像が立体画像である場合には第1の処理が選択され、印刷画像が変化画像である場合には第2の処理が選択されるようにその値が設定されている。このため、立体画像および変化画像に最適な処理が自動的に選択されることから、ユーザフレンドリーな環境を提供することができる。   In addition to the above-described invention, the image processing apparatus according to another aspect of the invention is configured such that the threshold value of the print data generation unit selects the first process when the print image is a stereoscopic image, and the print image is a change image. In some cases, the value is set so that the second process is selected. For this reason, since the optimal process is automatically selected for the stereoscopic image and the change image, a user-friendly environment can be provided.

また、他の発明の画像処理装置は、上述の発明に加えて、印刷データ生成手段の閾値を任意に設定可能な閾値設定手段をさらに有するようにしている。このため、例えば、閾値を小さく設定すれば、処理時間が短い第1の処理が優先的に選択されるので、処理時間を短縮することができる。   In addition to the above-described invention, an image processing apparatus according to another invention further includes a threshold setting unit that can arbitrarily set the threshold of the print data generation unit. For this reason, for example, if the threshold is set small, the first process with a short processing time is preferentially selected, so that the processing time can be shortened.

また、他の発明の画像処理装置は、上述の発明に加えて、印刷データ生成手段は、レンズシートのインク吸収性も考慮して、第1の処理または第2の処理を選択するようにしている。このため、例えば、インク吸収性が高い場合には、画像単位でハーフトーン処理を施しても、インクのにじみが発生したり、粒状感が増加したりする場合が少ないので、視差数が最大視差数を上回る場合でも画像単位でハーフトーン処理を施すことができる。   In addition to the above-described invention, in the image processing apparatus of another invention, the print data generation unit may select the first process or the second process in consideration of the ink absorbability of the lens sheet. Yes. For this reason, for example, when the ink absorptivity is high, even if halftone processing is performed on an image basis, there are few cases where ink bleed or graininess increases. Even when the number is exceeded, halftone processing can be performed in units of images.

また、他の発明の画像処理装置は、上述の発明に加えて、相関性算出手段が、任意に選ばれた1の画像データと、それ以外の画像データとの相互の相関値を算出することにより、画像データ間の相関性を算出するようにしている。このため、全ての画像データ同士を総当たりで比較する場合に比較して、比較処理に必要な時間を削減することができる。   In addition to the above-described invention, in the image processing apparatus of another invention, the correlation calculation means calculates a correlation value between one arbitrarily selected image data and other image data. Thus, the correlation between the image data is calculated. For this reason, the time required for the comparison process can be reduced as compared with a case where all image data are compared with each other.

また、他の発明の画像処理装置は、上述の発明に加えて、相関性算出手段が、任意に選ばれた1の画像データの複数のサンプリングポイントにおいてサンプリングされた画素群の情報と、それ以外の画像データの対応するサンプリングポイントにおいてサンプリングされた画素群の情報に基づいて画像間の相関性を算出するようにしている。このため、画像データの一部の情報から相関性を判定することができるので、処理時間を短縮することができる。   In addition to the above-described invention, the image processing apparatus according to another aspect of the invention includes information on pixel groups sampled at a plurality of sampling points of one arbitrarily selected image data by the correlation calculation unit, and other than that The correlation between the images is calculated based on the pixel group information sampled at the sampling point corresponding to the image data. For this reason, since the correlation can be determined from a part of information of the image data, the processing time can be shortened.

また、本発明は、一方向を長手とする複数のレンズが配置されているレンズシートに印刷画像を形成するために複数の画像データを処理すると共に、該処理された画像データに基づいて印刷を実行するためのプリンタにおいて、複数の画像データの相関性を算出する相関性算出手段と、相関性算出手段によって算出された相関性が所定の閾値以上である場合は、複数の画像をそれぞれ細分化して得られた細分化画像を順次並べて合成した後にハーフトーン処理を施して印刷データを生成する第1の処理を選択し、相関性が所定の閾値未満である場合は、複数の画像のそれぞれに対してハーフトーン処理を施して得られた画像を細分化した後に合成して印刷データを生成する第2の処理を選択する印刷データ生成手段と、を具備する。   In addition, the present invention processes a plurality of image data to form a print image on a lens sheet on which a plurality of lenses having one longitudinal direction are arranged, and performs printing based on the processed image data. In the printer for execution, when the correlation calculation means for calculating the correlation of a plurality of image data and the correlation calculated by the correlation calculation means are equal to or greater than a predetermined threshold, each of the plurality of images is subdivided. If the correlation is less than a predetermined threshold when the first processing for generating print data by performing halftone processing after sequentially combining the subdivided images obtained in this way and combining them is selected. Print data generating means for selecting a second process for generating print data by subdividing an image obtained by subjecting the halftone process to subdivision.

このため、立体画像および変化画像の特性に応じた最適な処理を行うことが可能な印刷装置を提供することができる。   For this reason, it is possible to provide a printing apparatus capable of performing optimum processing according to the characteristics of the stereoscopic image and the change image.

また、本発明は、一方向を長手とする複数のレンズが配置されているレンズシート上に配置される印刷画像を形成するために複数の画像データを処理すると共に、該処理された画像データに基づいて印刷を実行するための印刷方法において、複数の画像データの相関性を算出する相関性算出工程と、相関性算出手段によって算出された相関性が所定の閾値以上である場合は、複数の画像をそれぞれ細分化して得られた細分化画像を順次並べて合成した後にハーフトーン処理を施して印刷データを生成する第1の処理を選択して実行し、相関性が所定の閾値未満である場合は、複数の画像のそれぞれに対してハーフトーン処理を施して得られた画像を細分化した後に合成して印刷データを生成する第2の処理を選択して実行する印刷データ生成工程と、を具備する。   In addition, the present invention processes a plurality of image data to form a printed image arranged on a lens sheet on which a plurality of lenses having one longitudinal direction are arranged, and the processed image data In the printing method for executing printing based on the correlation calculation step of calculating the correlation of the plurality of image data, and when the correlation calculated by the correlation calculation means is equal to or greater than a predetermined threshold, When the correlation is less than a predetermined threshold when the first processing for generating print data by performing halftone processing after combining the subdivided images obtained by subdividing the images one after the other is selected and executed. Print data generation executed by selecting and executing a second process for generating print data by subdividing an image obtained by performing halftone processing on each of a plurality of images Comprising a degree, the.

このため、立体画像および変化画像の特性に応じた最適な処理を行うことが可能な印刷方法を提供することができる。   Therefore, it is possible to provide a printing method capable of performing optimum processing according to the characteristics of the stereoscopic image and the change image.

以下、本発明の印刷装置の実施の形態について、図1から図20に基づいて説明する。なお、本実施の形態では図1に示すプリンタ60と、後述するホストコンピュータ200とが接続され、これらが協働することによって、印刷装置が実現される。また、以下の実施の形態では、プリンタ60は、インクジェット式のプリンタであるが、かかるインクジェット式プリンタは、インクを吐出して印刷可能な装置であれば、いかなる吐出方法を採用した装置でも良い。   Hereinafter, embodiments of a printing apparatus according to the present invention will be described with reference to FIGS. In the present embodiment, the printer 60 shown in FIG. 1 and a host computer 200 described later are connected, and the printing apparatus is realized by cooperation between them. In the following embodiments, the printer 60 is an ink jet printer. However, the ink jet printer may be an apparatus that employs any ejection method as long as the apparatus is capable of printing by ejecting ink.

図1は、本実施の形態に係るプリンタ60の概略構成を示す斜視図である。なお、以下の説明においては、下方側とは、プリンタが設置される側(Z軸下方向)を指し、上方側とは、設置される側から離間する側(Z軸上方向)を指す。また、後述するキャリッジ31が移動する方向を主走査方向、主走査方向に直交する方向であってレンズシート10が搬送される方向を副走査方向とする。また、レンズシート10が供給される側を給紙側(後端側)、レンズシート10が排出される側を排紙側(手前側)として説明する。   FIG. 1 is a perspective view showing a schematic configuration of a printer 60 according to the present embodiment. In the following description, the lower side refers to the side where the printer is installed (the Z-axis downward direction), and the upper side refers to the side away from the installation side (the Z-axis upward direction). In addition, a direction in which a carriage 31 described later moves is a main scanning direction, a direction orthogonal to the main scanning direction, and a direction in which the lens sheet 10 is conveyed is a sub-scanning direction. Further, the side on which the lens sheet 10 is supplied will be described as a paper feeding side (rear end side) and the side on which the lens sheet 10 is discharged will be described as a paper discharge side (front side).

この図1に示すように、プリンタ60は、プラテン20を有し、このプラテン20対してキャリッジ31が往復移動自在に構成されている。キャリッジ31は、シアン、マゼンタ、イエロー、および、ブラックインクが内部に貯留されたインクカートリッジ30を保持している。キャリッジ31の下方側には、レンズシート10に対向するように、記録ヘッド32が設けられており、インクカートリッジ30に貯留されているインクを吸引し、微小なインク滴として吐出可能としている。なお、搭載されるインクカートリッジ30は、4色に限られるものではなく、6色、7色および8色等、何色分であっても良い。また、インクカートリッジ30に充填されるインクは、染料系インクには限られず、顔料系インク等、他の種類のインクを搭載しても良い。   As shown in FIG. 1, the printer 60 includes a platen 20, and a carriage 31 is configured to be reciprocally movable relative to the platen 20. The carriage 31 holds an ink cartridge 30 in which cyan, magenta, yellow, and black inks are stored. A recording head 32 is provided on the lower side of the carriage 31 so as to face the lens sheet 10, and the ink stored in the ink cartridge 30 can be sucked and ejected as minute ink droplets. The mounted ink cartridges 30 are not limited to four colors, and may be any number of colors such as six colors, seven colors, and eight colors. Ink filled in the ink cartridge 30 is not limited to dye-based ink, and other types of ink such as pigment-based ink may be mounted.

キャリッジ31には、タイミングベルト35の一部が固着されている。タイミングベルト35は、プリー33,34を連接するように架張されている。プリー33には、キャリッジモータ36の駆動軸が接続されている。したがって、キャリッジモータ36が回転されると、キャリッジ31が図1中に矢印で示すX方向(主走査方向)に往復動作する。   A part of the timing belt 35 is fixed to the carriage 31. The timing belt 35 is stretched so as to connect the pulleys 33 and 34. A drive shaft of a carriage motor 36 is connected to the pulley 33. Therefore, when the carriage motor 36 is rotated, the carriage 31 reciprocates in the X direction (main scanning direction) indicated by an arrow in FIG.

キャリッジ31の一部(この図の例では左側)には、後述するシリンドリカル凸レンズ(以下、凸レンズとする。)を検出するための光学センサ40が設けられている。なお、光学センサ40の詳細については、後述する。   An optical sensor 40 for detecting a cylindrical convex lens (hereinafter referred to as a convex lens) to be described later is provided on a part of the carriage 31 (on the left side in the example of this figure). Details of the optical sensor 40 will be described later.

キャリッジ31が往復動作する経路上には、リニアエンコーダを構成するスケール37が配置されている。キャリッジ31のスケール37に対向する面には、後述する光学センサ38が配置されており、当該光学センサ38によってスケール37に印刷されたパターンを検出することにより、キャリッジ31の主走査経路上における位置を特定する。   A scale 37 constituting a linear encoder is disposed on a path along which the carriage 31 reciprocates. An optical sensor 38, which will be described later, is disposed on the surface of the carriage 31 that faces the scale 37. By detecting the pattern printed on the scale 37 by the optical sensor 38, the position of the carriage 31 on the main scanning path is detected. Is identified.

プラテン20の上流側(紙面の奥側)には、円柱形状を有する紙送りローラ50が設けられている。紙送りローラ50には、紙送りモータ(PFモータ)51の駆動力が伝達される。したがって、紙送りモータ51が回転されると、紙送りローラ50が回転され、レンズシート10がプラテン20上を、Y方向(図中矢印で示す方向)の排紙側に向けて搬送される。   A paper feed roller 50 having a cylindrical shape is provided on the upstream side (back side of the paper surface) of the platen 20. A driving force of a paper feed motor (PF motor) 51 is transmitted to the paper feed roller 50. Accordingly, when the paper feed motor 51 is rotated, the paper feed roller 50 is rotated, and the lens sheet 10 is conveyed on the platen 20 toward the paper discharge side in the Y direction (the direction indicated by the arrow in the figure).

レンズシート10は、後述するように、一方の面には、例えば、凸形状を有する複数の凸レンズ(レンズ)が形成されている。また、他方の面は印刷面とされている。図1の例では、凸レンズの長手方向(レンズの伸びている方向)と、Y方向(副走査方向)とが一致するように、レンズシート10が配置される。また、この例では、Y方向に長い短冊状の画像が、各凸レンズの短手方向の幅内に収まるように複数印刷される。なお、凸レンズとしては、図に示す凸形状のみならず、例えば、凹形状を有するものを使用することも可能である。   As will be described later, the lens sheet 10 is formed with a plurality of convex lenses (lenses) having a convex shape on one surface, for example. The other surface is a printing surface. In the example of FIG. 1, the lens sheet 10 is disposed so that the longitudinal direction of the convex lens (the direction in which the lens extends) and the Y direction (sub-scanning direction) coincide. In this example, a plurality of strip-shaped images that are long in the Y direction are printed so as to be within the width of each convex lens in the short direction. In addition, as a convex lens, what has not only the convex shape shown to a figure but a concave shape can also be used, for example.

プラテン20は、その上側面に発光部22を有している。プラテン20は、例えば、樹脂によって構成され、レンズシート10を保持してスムーズに搬送されるようにするとともに、記録ヘッド32と、レンズシート10との間の距離が一定になるようにする。   The platen 20 has a light emitting part 22 on its upper side. The platen 20 is made of, for example, resin, and holds the lens sheet 10 so that the platen 20 can be smoothly conveyed, and the distance between the recording head 32 and the lens sheet 10 is constant.

発光部22は、レンズシート10に対して光を照射し、当該レンズシート10を透過した光を光学センサ40に入射させる。発光部22は、例えば、複数のLED(Light Emitting Diode)が主走査経路に沿って配置され、その上部に光を拡散させるための透過性拡散板(例えば、オパール、パール、磨りガラス等の板)が配置されて構成されている。なお、透過性拡散板は、発光部22から照射される光が均一光となるようにするためのものである。また、発光部22は、例えば、矩形形状を有しており、長手方向はレンズシート10のX方向よりも広い幅を有しており、短手方向は光学センサ40の受光部の副走査方向の幅よりも広い幅を有している。なお、拡散板ではなく透過板(例えば、アクリル板、ガラス板)を設ける構成としたり、あるいは透過性拡散板または透過板等を全く設けない構成としたりすることも可能である。拡散板または透過性拡散板を設けた場合には、発光素子22aに対してインク滴が付着し、発光強度が低下することを防止できる。   The light emitting unit 22 irradiates the lens sheet 10 with light and causes the light transmitted through the lens sheet 10 to enter the optical sensor 40. The light emitting unit 22 includes, for example, a plurality of LEDs (Light Emitting Diodes) arranged along the main scanning path, and a transparent diffusion plate (for example, opal, pearl, frosted glass, etc.) for diffusing light on the upper part. ) Is arranged and configured. The transmissive diffusing plate is for making the light emitted from the light emitting unit 22 uniform light. Further, the light emitting unit 22 has, for example, a rectangular shape, the longitudinal direction has a width wider than the X direction of the lens sheet 10, and the short side direction is the sub-scanning direction of the light receiving unit of the optical sensor 40. It has a width wider than the width of. Note that a transmission plate (for example, an acrylic plate or a glass plate) may be provided instead of the diffusion plate, or a configuration in which a transmissive diffusion plate or a transmission plate is not provided at all is also possible. In the case where a diffusion plate or a transmissive diffusion plate is provided, it is possible to prevent ink droplets from adhering to the light emitting element 22a and lowering the light emission intensity.

なお、図1では、全体の形状をわかりやすくするために、発光部22をプラテン20の下流側の端部付近に設けているが、実際には上流側の光学センサ40に対向する位置に設けられている。これらの詳細な位置関係については、図6を参照して後述する。   In FIG. 1, in order to make the overall shape easy to understand, the light emitting unit 22 is provided in the vicinity of the downstream end of the platen 20, but it is actually provided at a position facing the upstream optical sensor 40. It has been. These detailed positional relationships will be described later with reference to FIG.

図2は、キャリッジ31の裏面(レンズシート10に対向する面)を示す図である。この図に示すように、キャリッジ31の裏面には、複数のノズルが列方向に配置されたノズル列32aを複数有する記録ヘッド32が設けられている。なお、各ノズル列32aは、例えば、180個のノズルによって構成されている。また、それぞれのノズル列32aは、同一の色のインクを吐出するノズル群によって構成される。   FIG. 2 is a diagram showing the back surface of the carriage 31 (the surface facing the lens sheet 10). As shown in the drawing, on the rear surface of the carriage 31, a recording head 32 having a plurality of nozzle rows 32a in which a plurality of nozzles are arranged in the row direction is provided. Each nozzle row 32a is composed of, for example, 180 nozzles. Each nozzle row 32a is constituted by a nozzle group that ejects ink of the same color.

キャリッジ31の裏面の右上端部には、光学センサ40が設けられている。なお、この例では、光学センサ40は、各ノズル列32aの最上端(図の上端)に形成されたノズルよりも上流側(レンズシート10の搬送方向の上流側)に設けられているので、レンズシート10が記録ヘッド32の最初のノズル(最上端のノズル)に到達する前に、光学センサ40によって凸レンズ11を検出することができる。   An optical sensor 40 is provided at the upper right end of the back surface of the carriage 31. In this example, the optical sensor 40 is provided on the upstream side (upstream side in the conveyance direction of the lens sheet 10) from the nozzle formed at the uppermost end (upper end in the drawing) of each nozzle row 32a. The convex lens 11 can be detected by the optical sensor 40 before the lens sheet 10 reaches the first nozzle (uppermost nozzle) of the recording head 32.

図3は、図2に示す光学センサ40とレンズシート10との位置関係を示す図である。この図に示すように、光学センサ40は、保持体41および受光部43を有している。ここで、保持体41には、受光部43が配置される凹部42が形成されている。凹部42の底面部には受光部43が配置されている。   FIG. 3 is a diagram showing a positional relationship between the optical sensor 40 and the lens sheet 10 shown in FIG. As shown in this figure, the optical sensor 40 has a holding body 41 and a light receiving portion 43. Here, the holding body 41 is formed with a recess 42 in which the light receiving portion 43 is disposed. A light receiving portion 43 is disposed on the bottom surface of the recess 42.

受光部43は、例えば、フォトダイオードによって構成され、レンズシート10を透過した光を受光し、その光の強度に対応するレベルを有する電気信号に変換して出力する。なお、受光部43としては、例えば、フォトトランジスタ、フォトダイオード、フォトIC等のような、受光した光を電気信号に変換することが可能な素子を用いることができる。   The light receiving unit 43 is configured by, for example, a photodiode, receives light transmitted through the lens sheet 10, converts the light into an electric signal having a level corresponding to the intensity of the light, and outputs the electric signal. As the light receiving unit 43, for example, an element that can convert received light into an electrical signal, such as a phototransistor, a photodiode, or a photo IC, can be used.

発光部22は、複数のLED等の発光素子22a、透過性拡散板22bを有している。ここで、発光素子22aは、例えば、赤色光、青色光、緑色光、赤外光等のような、所定の色の光を発することが可能な発光ダイオードを用いることができる。また、例えば可視光または赤外光のようなレーザ光を生じさせることが可能なLED、ランプ、または、EL(Electro Luminescence)を発光部としても良い。また、複数の発光素子を配置する代わりに、例えば、少なくともひとつ冷陰極管を用いることができる。あるいは、導光板をプラテン20上に配置し、その端部に冷陰極管またはLED等を配置するようにしてもよい。   The light emitting unit 22 includes a plurality of light emitting elements 22a such as LEDs and a transmissive diffusion plate 22b. Here, as the light emitting element 22a, for example, a light emitting diode capable of emitting light of a predetermined color such as red light, blue light, green light, infrared light, or the like can be used. Further, for example, an LED, a lamp, or an EL (Electro Luminescence) that can generate laser light such as visible light or infrared light may be used as the light emitting unit. Further, instead of arranging a plurality of light emitting elements, for example, at least one cold cathode tube can be used. Or you may make it arrange | position a light-guide plate on the platen 20 and to arrange | position a cold cathode tube or LED in the edge part.

透過性拡散板22bは、例えば、オパール、パール、または、磨りガラス等によって構成され、複数の発光素子22aから照射された光を拡散して均一光にし、レンズシート10に入射する。なお、パール板の代わりに、例えば、表面に凹凸構造を有するその他の板を使用することも可能である。また、冷陰極管または導光板等を用いる場合には、それらから照射される光は十分に均一であるので、透過性拡散板22bは設けなくてもよい。   The transmissive diffusing plate 22b is made of, for example, opal, pearl, or frosted glass, and diffuses light emitted from the plurality of light emitting elements 22a into uniform light, which is incident on the lens sheet 10. Instead of the pearl plate, for example, another plate having a concavo-convex structure on the surface can be used. Further, when using a cold cathode tube or a light guide plate, the light emitted from them is sufficiently uniform, and therefore the transmissive diffusion plate 22b may not be provided.

レンズシート10は、凸レンズ11、インク吸収層12、および、インク透過層13を有している。ここで、レンズとしての凸レンズ11は、例えば、透明な樹脂によって構成され、かまぼこ形状を有するレンズが所定の間隔(ピッチ)で複数連結されて構成される。なお、レンズシート10の種類は、レンズの間隔によって示され、例えば、45lpi(lens per inch)、60lpi、90lpi等がある。なお、これ以外のピッチ(例えば、100lpi等)のレンズを使用することも可能である。凸レンズ11は、PET(Polyethylene Terephthalate)、PETG(Polyethylene Terephthalate Glycol)、APET(Amorphous Polyethylene Terephthalate)、PP(Polyethylene)、PS(Polystyrene)、PVC(Polyvinyl chloride)、アクリル、UV(Ultraviolet)硬化樹脂等によって構成される。   The lens sheet 10 includes a convex lens 11, an ink absorption layer 12, and an ink transmission layer 13. Here, the convex lens 11 as a lens is made of, for example, a transparent resin, and a plurality of lenses having a kamaboko shape are connected at a predetermined interval (pitch). The type of the lens sheet 10 is indicated by the distance between the lenses, and examples thereof include 45 lpi (lens per inch), 60 lpi, and 90 lpi. It is also possible to use lenses with other pitches (for example, 100 lpi). Convex lens 11 is made of PET (Polyethylene Terephthalate), PETG (Polyethylene Terephthalate Glycol), APET (Amorphous Polyethylene Telephthalate), PP (Polyethylene), PP (Polyethylene), PP (Polyethylene), PS (Polyethylene), PS (Polyethylene), PS (Polyethylene). Composed.

インク吸収層12は、インクを吸収する材料によって構成され、インク透過層13を透過したインクを定着させる。なお、インク吸収層12は、例えば、PVA(Poly Vinyl Alchol)等親水性ポリマ、カチオン化合物、シリカ等微粒子によって構成されている。また、インク透過層13は、インクを透過する材料によって構成され、インク吸収層に定着されたインクを保護する。なお、インク透過層13は、酸化チタン、シリカゲル、PMMA(Polymethylmethacrylate)等微粒子、バインダ樹脂等によって構成されている。なお、インク吸収層12およびインク透過層13のいずれか一方は、非透明な材料によって構成される。また、インク透過層13は、あってもなくてもよい。さらに、インク吸収層12およびインク透過層13以外にも、例えば、透明フィルム層または接着層等があってもよい。   The ink absorption layer 12 is made of a material that absorbs ink, and fixes the ink that has passed through the ink transmission layer 13. The ink absorbing layer 12 is made of, for example, a hydrophilic polymer such as PVA (Poly Vinyl Alchol), fine particles such as a cationic compound, and silica. The ink transmission layer 13 is made of a material that transmits ink, and protects the ink fixed on the ink absorption layer. The ink transmission layer 13 is composed of fine particles such as titanium oxide, silica gel, and PMMA (Polymethylmethacrylate), a binder resin, and the like. Note that one of the ink absorption layer 12 and the ink transmission layer 13 is made of a non-transparent material. The ink permeable layer 13 may or may not be present. Further, in addition to the ink absorption layer 12 and the ink transmission layer 13, for example, a transparent film layer or an adhesive layer may be provided.

発光部22から射出され、凸レンズ11、インク吸収層12、および、インク透過層13を透過した光は、受光部43によって受光され、透過光の強度に応じた電気信号に変換されて出力される。   The light emitted from the light emitting unit 22 and transmitted through the convex lens 11, the ink absorbing layer 12, and the ink transmitting layer 13 is received by the light receiving unit 43, converted into an electrical signal corresponding to the intensity of the transmitted light, and output. .

図4は、図1に示すプリンタ60の制御系の構成例を示すブロック図である。この図に示すように、プリンタ60の制御系としては、キャリッジモータ36、紙送りモータ51、制御部100、および、インターフェース112を有している。ここで、インターフェース112は、制御部100とホストコンピュータ200とを電気的に接続し、これらの間で情報の授受を可能とするために信号の表現形式等を変換する機能を有する。制御部100は、ホストコンピュータ200から送信されてきた印刷データに基づいてレンズシート10に画像を印刷するための制御を行う。なお、制御部100の詳細については後述する。キャリッジモータ36は、制御部100によって制御され、キャリッジ31を主走査方向に往復動作させる。なお、キャリッジ31の一部には光学センサ38が設けられており、この光学センサ38とスケール37によってリニアエンコーダが構成されている。制御部100は、このリニアエンコーダによってキャリッジ31の現在の位置を知ることができる。紙送りモータ51は、紙送りローラ50に駆動力を与えることにより、レンズシート10を副走査方向に移動させる。ホストコンピュータ200は、HDD(Hard Disk Drive)204を有しており、このHDD204には、レンズシート10の印刷に対応させて画像を加工するための画像処理プログラム等が記憶されている   FIG. 4 is a block diagram showing a configuration example of a control system of the printer 60 shown in FIG. As shown in this figure, the control system of the printer 60 includes a carriage motor 36, a paper feed motor 51, a control unit 100, and an interface 112. Here, the interface 112 has a function of electrically connecting the control unit 100 and the host computer 200 and converting a signal expression format or the like in order to enable information exchange between them. The control unit 100 performs control for printing an image on the lens sheet 10 based on the print data transmitted from the host computer 200. Details of the control unit 100 will be described later. The carriage motor 36 is controlled by the control unit 100 and reciprocates the carriage 31 in the main scanning direction. An optical sensor 38 is provided on a part of the carriage 31, and the optical sensor 38 and the scale 37 constitute a linear encoder. The control unit 100 can know the current position of the carriage 31 using this linear encoder. The paper feed motor 51 moves the lens sheet 10 in the sub-scanning direction by applying a driving force to the paper feed roller 50. The host computer 200 has an HDD (Hard Disk Drive) 204, and an image processing program for processing an image corresponding to printing of the lens sheet 10 is stored in the HDD 204.

図5は、図4に示すプリンタ60を図の右側から眺めた図である。この図に示すように、キャリッジ31は、プラテン20に対向する状態で設けられている。また、キャリッジ31の下部には、記録ヘッド32が設けられている。図2に示すように、記録ヘッド32には、複数のノズルがレンズシート10の搬送方向(副走査方向)に配置されてノズル列32aを形成している。なお、前述のように、本実施の形態では、各ノズル列32aは、例えば180個のノズルから構成されており、このうち、180番目のノズルが給紙側、1番目のノズルが排紙側に位置している。   FIG. 5 is a view of the printer 60 shown in FIG. 4 as viewed from the right side of the drawing. As shown in this figure, the carriage 31 is provided so as to face the platen 20. A recording head 32 is provided below the carriage 31. As shown in FIG. 2, the recording head 32 has a plurality of nozzles arranged in the conveyance direction (sub-scanning direction) of the lens sheet 10 to form a nozzle row 32a. As described above, in the present embodiment, each nozzle row 32a is composed of, for example, 180 nozzles, of which the 180th nozzle is the paper feed side and the first nozzle is the paper discharge side. Is located.

また、キャリッジ31の下部に設けられ、各インクに対応づけられたノズル列32aには、ノズル毎に、ピエゾ素子(不図示)が配置されている。このピエゾ素子の作動により、インク通路の端部にあるノズルからインク滴を吐出することが可能となっている。なお、記録ヘッド32は、ピエゾ素子を用いたピエゾ駆動方式に限られず、その他の方式を用いても良い。その他の方式としては、例えば、インクをヒータで加熱し、発生する泡の力を利用するヒータ方式、磁歪素子を用いる磁歪方式、静電気力を利用した静電方式、ミストを電界で制御するミスト方式等が、主な方式として挙げられる。   In addition, a piezo element (not shown) is provided for each nozzle in the nozzle row 32a provided at the lower portion of the carriage 31 and associated with each ink. By operating the piezo element, it is possible to eject ink droplets from the nozzles at the end of the ink passage. The recording head 32 is not limited to the piezo driving method using a piezo element, and other methods may be used. Other methods include, for example, a heater method in which ink is heated with a heater and the generated foam force is used, a magnetostriction method in which a magnetostrictive element is used, an electrostatic method in which electrostatic force is used, and a mist method in which mist is controlled by an electric field. Etc. are mentioned as main methods.

用紙搬送機構80は、レンズシート10等の印刷対象物を搬送する駆動力を与える紙送りモータ(不図示)、および、普通紙等の給紙に対応する給紙ローラ82を具備している。また、この給紙ローラ82よりも排紙側には、レンズシート10を搬送するための紙送りローラ50が設けられている。また、紙送りローラ50よりも排紙側には、プラテン20および上述の記録ヘッド32が上下に対向するように配設されている。プラテン20は、紙送りローラ50によって印刷ヘッド32の下へ搬送されてくるレンズシート10を、下方側から支持する。   The paper transport mechanism 80 includes a paper feed motor (not shown) that provides a driving force for transporting a printing object such as the lens sheet 10 and a paper feed roller 82 that supports the feeding of plain paper or the like. A paper feed roller 50 for conveying the lens sheet 10 is provided on the paper discharge side of the paper feed roller 82. Further, the platen 20 and the recording head 32 described above are disposed on the paper discharge side of the paper feed roller 50 so as to face each other in the vertical direction. The platen 20 supports the lens sheet 10 conveyed below the print head 32 by the paper feed roller 50 from below.

また、プラテン20よりも排紙側には、上述の紙送りローラ50と同様の、排紙ローラ52が設けられている。この排紙ローラ52は、紙送りモータ51からの駆動力が伝達されて、回転する。なお、紙送りモータ51は、その駆動力を紙送りローラ50と排紙ローラ52とに分配させる構成を採用している。しかしながら、紙送りモータ51以外に、別途のモータを設け、そのモータによって排紙ローラ52を駆動させる構成を採用しても良い。   A paper discharge roller 52 similar to the paper feed roller 50 is provided on the paper discharge side of the platen 20. The paper discharge roller 52 rotates upon receiving the driving force from the paper feed motor 51. The paper feed motor 51 employs a configuration that distributes the driving force to the paper feed roller 50 and the paper discharge roller 52. However, a configuration may be employed in which a separate motor is provided in addition to the paper feed motor 51 and the paper discharge roller 52 is driven by the motor.

また、排紙側とは逆の後端側かつ給紙ローラ82の下方側には、開口部87が設けられている。開口部87は、レンズシート10等の折り曲げ困難な印刷対象物を通過させるための、開口部分である。そのため、開口部87は、レンズシート10を通過させるのに十分な、主走査方向における幅を有している。なお、レンズシート10は、それ単体で開口部87を通過するようにしても良く、また厚みのあるトレイ等に載置された状態で通過するようにしても良い。   An opening 87 is provided on the rear end side opposite to the paper discharge side and on the lower side of the paper feed roller 82. The opening 87 is an opening for allowing a printing object that is difficult to bend, such as the lens sheet 10, to pass therethrough. Therefore, the opening 87 has a width in the main scanning direction sufficient to pass the lens sheet 10. The lens sheet 10 alone may pass through the opening 87, or may be passed in a state of being placed on a thick tray or the like.

図6は、プラテン20の側断面図の一例である。図6に示すように、プラテン20には、該プラテン20の基準平面21aから上方に向かい、レンズシート10等が接触する複数のリブ21bが突出している。また、プラテン20のうち、給紙側の端部側には、発光部22が設けられている(図1および図7参照)。発光部22は、レンズシート10に対して光を照射するための部位である。   FIG. 6 is an example of a side sectional view of the platen 20. As shown in FIG. 6, a plurality of ribs 21 b projecting upward from the reference plane 21 a of the platen 20 and contacting the lens sheet 10 and the like protrude from the platen 20. In addition, a light emitting unit 22 is provided on the end side of the sheet feeding side of the platen 20 (see FIGS. 1 and 7). The light emitting unit 22 is a part for irradiating the lens sheet 10 with light.

レンズシート10は、紙送りローラ50および従動ローラ50aによって挟持されつつ駆動力を与えられて副走査方向に移動される。また、レンズシート10は、印刷が終了すると、排紙ローラ52および従動ローラ52aによって挟持されつつ駆動力を与えられて排紙される。   The lens sheet 10 is moved in the sub-scanning direction by being given a driving force while being sandwiched between the paper feed roller 50 and the driven roller 50a. Further, when printing is completed, the lens sheet 10 is ejected with a driving force applied while being sandwiched between the ejection roller 52 and the driven roller 52a.

図7は、制御部100の詳細な構成例を示す図である。この図に示すように、制御部100は、CPU101、ROM(Read Only Memory)102、RAM(Random Access Memory)103、ASIC(Application Specified Integrated Circuit)104、DC(Direct Current)ユニット105、信号処理部106、PFモータドライバ107、CRモータドライバ108、ヘッドドライバ109、不揮発性メモリ110、レンズ信号二値化回路111、および、インターフェース112を有している。なお、制御部100には、紙幅検出のためのPW(Paper Width)センサ(不図示)、光学センサ40、ギャップ検出センサ(不図示)、光学センサ38、および、ロータリエンコーダ113等が接続され、これらのセンサから入力された信号に基づいて、記録ヘッド32、紙送りモータ51、および、キャリッジモータ36等を制御する。   FIG. 7 is a diagram illustrating a detailed configuration example of the control unit 100. As shown in this figure, the control unit 100 includes a CPU 101, a ROM (Read Only Memory) 102, a RAM (Random Access Memory) 103, an ASIC (Application Specified Integrated Circuit) 104, a DC (Direct Unit Current Processing) unit, and a DC (Direct Unit Current Processing) unit. 106, a PF motor driver 107, a CR motor driver 108, a head driver 109, a nonvolatile memory 110, a lens signal binarization circuit 111, and an interface 112. The control unit 100 is connected to a paper width detection PW (Paper Width) sensor (not shown), an optical sensor 40, a gap detection sensor (not shown), an optical sensor 38, a rotary encoder 113, and the like. Based on signals input from these sensors, the recording head 32, the paper feed motor 51, the carriage motor 36, and the like are controlled.

ここで、CPU101は、ROM102や不揮発性メモリ110等に記憶されている制御プログラムを実行するための演算処理や、その他の必要な演算処理を行う。また、ROM102には、プリンタ60を制御するための制御プログラムおよび処理に必要なデータ等が記憶されている。また、ASIC104は、パラレルインターフェース回路を内蔵しており、インターフェース112を介してホストコンピュータ200から供給される印刷信号を受け取ることができる。   Here, the CPU 101 performs arithmetic processing for executing a control program stored in the ROM 102, the nonvolatile memory 110, and the like, and other necessary arithmetic processing. The ROM 102 stores a control program for controlling the printer 60, data necessary for processing, and the like. The ASIC 104 includes a parallel interface circuit, and can receive a print signal supplied from the host computer 200 via the interface 112.

RAM103は、CPU101が実行途中のプログラム/演算途中のデータ等を一時的に格納するメモリである。また、不揮発性メモリ110は、プリンタ60の電源切断後も、保持の必要な各種データを記憶するためのメモリである。   The RAM 103 is a memory that temporarily stores programs being executed by the CPU 101 / data being calculated. The nonvolatile memory 110 is a memory for storing various data that needs to be retained even after the printer 60 is powered off.

なお、光学センサ113およびスケール113aによって構成されるロータリエンコーダは、上述のリニアエンコーダとは異なり、スケール113aが円盤状に設けられている。しかしながら、それ以外の構成は、リニアエンコーダと同様となっている。また、本実施の形態では、ロータリエンコーダのスケール113aに設けられている複数のスリットのスリット間隔は、1/180インチとなっているとともに、紙送りモータ51が1スリット分だけ回転すると、1/1440インチだけ、レンズシート10が搬送されるように構成されている。しかしながら、スリット間隔および搬送ピッチは、これには限られず、種々設定することが可能である。   Note that the rotary encoder configured by the optical sensor 113 and the scale 113a is different from the above-described linear encoder in that the scale 113a is provided in a disk shape. However, the other configuration is the same as that of the linear encoder. In the present embodiment, the slit interval of the plurality of slits provided on the scale 113a of the rotary encoder is 1/180 inch, and when the paper feed motor 51 rotates by one slit, The lens sheet 10 is configured to be conveyed by 1440 inches. However, the slit interval and the conveyance pitch are not limited to this, and can be variously set.

また、DCユニット105は、DCモータであるキャリッジモータ36、紙送りモータ51の速度制御を行うための制御回路である。DCユニット105は、CPU101から送られてくる制御命令、後述する信号処理部106からの出力信号等に基づいて、紙送りモータ51およびキャリッジモータ36の速度制御を行うための各種演算を行い、その演算結果に基づいて、紙送りモータドライバ107およびキャリッジモータドライバ108へ、モータ制御信号を送信する。   The DC unit 105 is a control circuit for performing speed control of the carriage motor 36 and the paper feed motor 51 which are DC motors. The DC unit 105 performs various calculations for controlling the speed of the paper feed motor 51 and the carriage motor 36 based on a control command sent from the CPU 101, an output signal from the signal processing unit 106 described later, and the like. Based on the calculation result, a motor control signal is transmitted to the paper feed motor driver 107 and the carriage motor driver 108.

また、信号処理部106は、後述するレンズ信号二値化回路111から出力される2値化信号、および、光学センサ38から出力されるエンコーダ信号が入力される。信号処理部106では、かかる2値化信号およびエンコーダ信号に基づき、レンズピッチの情報を有する2値化信号を反映させた、モータ駆動信号およびPTS(Print Timing Signal)信号を生成し、キャリッジモータ36および記録ヘッド32にそれぞれ出力する。それにより、キャリッジモータ36においては、検出されたレンズピッチに応じた駆動速度で駆動され、また、レンズピッチに応じた位置に画像が印刷される。   Further, the signal processing unit 106 receives a binarized signal output from a lens signal binarization circuit 111 described later and an encoder signal output from the optical sensor 38. Based on the binarized signal and the encoder signal, the signal processing unit 106 generates a motor drive signal and a PTS (Print Timing Signal) signal reflecting the binarized signal having lens pitch information, and the carriage motor 36. And output to the recording head 32. Thereby, the carriage motor 36 is driven at a driving speed corresponding to the detected lens pitch, and an image is printed at a position corresponding to the lens pitch.

PFモータドライバ107は、DCユニット105から供給されたモータ制御信号に応じて、紙送りモータ51を駆動する駆動回路である。CRモータドライバ108は、DCユニット105から供給されたモータ制御信号に応じて、キャリッジモータ36を駆動する駆動回路である。ヘッドドライバ109は、ASIC104から供給された印刷信号に応じて記録ヘッド32に内蔵されているピエゾ素子を駆動し、印刷信号に対応したインク滴を発生して、レンズシート10に所望の画像を印刷する。   The PF motor driver 107 is a drive circuit that drives the paper feed motor 51 in accordance with a motor control signal supplied from the DC unit 105. The CR motor driver 108 is a drive circuit that drives the carriage motor 36 in accordance with a motor control signal supplied from the DC unit 105. The head driver 109 drives a piezo element built in the recording head 32 according to the print signal supplied from the ASIC 104, generates ink droplets corresponding to the print signal, and prints a desired image on the lens sheet 10. To do.

また、上述の制御部100における各構成は、バス100aによって接続され、各構成の間でデータの授受を可能としている。   Each component in the control unit 100 described above is connected by a bus 100a, and data can be exchanged between the components.

また、プリンタ60は、インターフェース112を具備している。このインターフェース112を介して、ホストコンピュータ200が接続されている。なお、このホストコンピュータ200は、前述のように、HDD204を具備しており、このHDD204には、レンズシート10の印刷に対応させて画像を加工するための画像処理プログラムおよびプリンタドライバプログラムが記憶されている。   The printer 60 includes an interface 112. A host computer 200 is connected via the interface 112. As described above, the host computer 200 includes the HDD 204. The HDD 204 stores an image processing program and a printer driver program for processing an image corresponding to printing of the lens sheet 10. ing.

この画像処理プログラムおよびプリンタドライバプログラムは、選択された複数の画像データのうち、該画像データの個数Nに応じて画像データを縦方向または横方向のいずれかの方向のみに1/Nに圧縮する圧縮処理と、この圧縮処理に前後して凸レンズのレンズピッチに応じて画像を分割する画像細分化処理と、圧縮処理および画像分割処理が為された細分化画像データを、それぞれの凸レンズにおいて適正な部位に配置して合成する合成処理と、また、適切なタイミングにおいてハーフトーン処理と、を行うものである。画像処理プログラムおよびプリンタドライバプログラムにおいては、凸レンズの幅(LPI)、画像データの分割方向等、所定の事項を指定可能となっている。また、画像細分化処理および圧縮処理を経過すると、細分化画像が形成される。なお、処理の詳細については後述する。   The image processing program and the printer driver program compress the image data to 1 / N only in either the vertical direction or the horizontal direction according to the number N of the selected image data. Compression processing, image segmentation processing that divides the image according to the lens pitch of the convex lens before and after this compression processing, and the segmented image data that has been subjected to compression processing and image segmentation processing are appropriately processed in each convex lens. The composition processing is performed by arranging it at the site, and the halftone processing is performed at an appropriate timing. In the image processing program and the printer driver program, it is possible to specify predetermined items such as the width (LPI) of the convex lens and the division direction of the image data. Further, after the image segmentation process and the compression process, a segmented image is formed. Details of the process will be described later.

図8は、図7に示すレンズ信号二値化回路111の詳細を示すブロック図である。この図に示すように、レンズ信号二値化回路111は、バンドパスフィルタ111a、増幅回路111b、および、二値化回路111cを主要な構成要素としている。   FIG. 8 is a block diagram showing details of the lens signal binarization circuit 111 shown in FIG. As shown in this figure, the lens signal binarization circuit 111 includes a band pass filter 111a, an amplification circuit 111b, and a binarization circuit 111c as main components.

ここで、バンドパスフィルタ111aは、受光部43から出力されるアナログ信号から凸レンズ11の周期に対応する信号を選択的に通過させるフィルタである。例えば、100lpiのピッチを有するレンズシート10を用いた場合に、受光部43から出力される信号をフーリエ変換した場合、受光部43から出力される信号には、2kHz付近の信号と、14.4kHz付近の信号の2種類が含まれる。ここで、14.4kHz付近の信号は、プリンタ60の駆動周波数(例えば、キャリッジモータ36の駆動周波数)が14.4kHz付近であるため、その影響を受けて出力される信号である。一方、2kHz付近の信号は、キャリッジ31が走査された際に、凸レンズ11によって周期的に透過された光に対応する信号である。したがって、この例では、バンドパスフィルタ111aとしては、2kHz付近の信号を選択的に通過させるフィルタ(2kHzを通過帯域とするフィルタ)を用いればよい。具体的には、2kHzを中心とし、1.8kHzから2.2kHzまでを通過帯域とするバンドパスフィルタを用いる。   Here, the band pass filter 111 a is a filter that selectively passes a signal corresponding to the period of the convex lens 11 from the analog signal output from the light receiving unit 43. For example, when the lens sheet 10 having a pitch of 100 lpi is used, when the signal output from the light receiving unit 43 is Fourier-transformed, the signal output from the light receiving unit 43 includes a signal in the vicinity of 2 kHz, 14.4 kHz Two types of nearby signals are included. Here, the signal around 14.4 kHz is a signal that is output under the influence of the driving frequency of the printer 60 (for example, the driving frequency of the carriage motor 36) around 14.4 kHz. On the other hand, a signal in the vicinity of 2 kHz is a signal corresponding to light periodically transmitted by the convex lens 11 when the carriage 31 is scanned. Therefore, in this example, as the band pass filter 111a, a filter that selectively passes a signal in the vicinity of 2 kHz (a filter having a pass band of 2 kHz) may be used. Specifically, a band pass filter having a pass band from 1.8 kHz to 2.2 kHz centered on 2 kHz is used.

なお、凸レンズ11の種類(レンズピッチ)が変化した場合には、受光部43から出力される信号の周波数も変化する。具体的には、解像度が低くなった場合(lpi(lens per inch)が低い場合)は周波数が低くなり、解像度が高くなった場合には周波数が高くなる。したがって、レンズシート10として様々な種類の解像度のものを使用する可能性がある場合には、例えば、最大の解像度と最小の解像度における周波数を予め測定しておき、これらを最大および最小とする帯域を通過帯域に有するバンドパスフィルタ111aを用いることにより、この範囲であればどのような解像度のレンズシート10が選択された場合でもレンズ信号を確実に抽出できる。具体例としては、100lpiの場合には、前述のように、2kHzを中心とし、1.8kHzから2.2kHzまでを通過帯域とするバンドパスフィルタ111aを用いる。また、60lpiの場合には、1.2kHzを中心とし、1.0kHzから1.4kHzまでを通過帯域とするバンドパスフィルタ111aを用いる。したがって、これらの2種類を使用する可能性がある場合には、1.0kHzから2.2kHzまでの通過帯域を有するバンドパスフィルタを用いる。   When the type (lens pitch) of the convex lens 11 changes, the frequency of the signal output from the light receiving unit 43 also changes. Specifically, when the resolution is low (when lpi (lens per inch) is low), the frequency is low, and when the resolution is high, the frequency is high. Accordingly, when there is a possibility of using various kinds of resolutions as the lens sheet 10, for example, the frequencies at the maximum resolution and the minimum resolution are measured in advance, and the bands that maximize and minimize these frequencies are measured. By using the band-pass filter 111a having a pass band within this range, the lens signal can be reliably extracted regardless of the resolution of the lens sheet 10 within this range. As a specific example, in the case of 100 lpi, as described above, the bandpass filter 111a having a center band of 2 kHz and a pass band from 1.8 kHz to 2.2 kHz is used. In the case of 60 lpi, a band pass filter 111a having a center band of 1.2 kHz and a pass band from 1.0 kHz to 1.4 kHz is used. Therefore, when there is a possibility of using these two types, a band pass filter having a pass band from 1.0 kHz to 2.2 kHz is used.

これ以外にも、例えば、バンドパスフィルタ111aとして、スイットキャパシタフィルタを用い、当該フィルタの駆動周波数(スイッチング周波数)を変化させることにより、使用されているレンズシート10の解像度に応じて最適な通過帯域を設定できるようにしてもよい。すなわち、スイッチトキャパシタフィルタでは、その伝達関数は、キャパシタの容量値の比と、スイッチング周期によって決定される。使用されているキャパシタの容量値は固定であるので、スイッチング周期を変更することにより、例えば、バンドパスフィルタの通過帯域を簡単に変更することができる。   In addition to this, for example, a switch capacitor filter is used as the band-pass filter 111a, and an optimum pass band according to the resolution of the lens sheet 10 being used is changed by changing the drive frequency (switching frequency) of the filter. May be set. That is, in the switched capacitor filter, the transfer function is determined by the capacitance value ratio of the capacitor and the switching period. Since the capacitance value of the used capacitor is fixed, for example, the pass band of the band-pass filter can be easily changed by changing the switching period.

増幅回路111bは、バンドパスフィルタ111aを通過した2kHz付近の信号を、所定のゲイン(例えば、40倍)に増幅し、出力する。二値化回路111cは、例えば、シュミットトリガ回路等によって構成され、増幅回路111bの出力信号が所定の閾値を超えた場合には、ハイの状態の信号を出力し、それ以外の場合にはローの状態の信号を出力する。その結果、二値化回路111cからは、ハイまたはローの二値を有するディジタル信号が出力される。   The amplifier circuit 111b amplifies the signal in the vicinity of 2 kHz that has passed through the band-pass filter 111a to a predetermined gain (for example, 40 times) and outputs the amplified signal. The binarization circuit 111c is configured by, for example, a Schmitt trigger circuit or the like, and outputs a high-level signal when the output signal of the amplification circuit 111b exceeds a predetermined threshold, and otherwise outputs a low level signal. The signal of the state is output. As a result, a digital signal having a binary value of high or low is output from the binarization circuit 111c.

図9は、図4および図7に示すホストコンピュータ200の詳細な構成例を示す図である。この図に示すように、ホストコンピュータ200は、CPU201、ROM202、RAM203、HDD204、ビデオ回路205、I/F206、バス207、表示装置208、入力装置209および外部記憶装置210を有している。   FIG. 9 is a diagram illustrating a detailed configuration example of the host computer 200 illustrated in FIGS. 4 and 7. As shown in this figure, the host computer 200 has a CPU 201, ROM 202, RAM 203, HDD 204, video circuit 205, I / F 206, bus 207, display device 208, input device 209, and external storage device 210.

これらのうち、CPU201は、ROM202やHDD204に格納されているプログラムに従って各種演算処理を実行すると共に、装置の各部を制御する。また、ROM202は、CPU201が実行する基本的なプログラムやデータを格納している。RAM203は、CPU201が実行途中のプログラムや、演算途中のデータ等を一時的に格納するメモリである。HDD204は、CPU201からの要求に応じて、記録媒体であるハードディスクに記録されているデータや後述するプログラムを読み出すと共に、データを前述したハードディスクに記録する記録装置である。   Among these, the CPU 201 executes various arithmetic processes according to programs stored in the ROM 202 and the HDD 204 and controls each unit of the apparatus. The ROM 202 stores basic programs and data executed by the CPU 201. The RAM 203 is a memory that temporarily stores programs being executed by the CPU 201 and data being calculated. The HDD 204 is a recording device that reads data recorded on a hard disk, which is a recording medium, and a program to be described later in response to a request from the CPU 201 and records the data on the hard disk described above.

ビデオ回路205は、CPU201から供給された描画命令に応じて描画処理を実行し、得られた画像データを映像信号に変換して表示装置208に出力する回路である。また、I/F206は、入力装置209および外部記憶装置130から出力された信号の表現形式を適宜変換するとともに、プリンタ60に対して印刷信号PSを出力する回路である。バス207は、ホストコンピュータ200の各構成を相互に接続し、これらの間でデータの授受を可能とする信号線である。また、表示装置208は、ビデオ回路205から出力された映像信号に応じた画像を表示する装置である。入力装置209は、例えば、キーボードやマウスを指し、ユーザの操作に応じた信号を生成して、I/F206に供給する装置である。   The video circuit 205 is a circuit that executes a drawing process in accordance with a drawing command supplied from the CPU 201, converts the obtained image data into a video signal, and outputs the video signal to the display device 208. The I / F 206 is a circuit that appropriately converts the expression format of signals output from the input device 209 and the external storage device 130 and outputs a print signal PS to the printer 60. A bus 207 is a signal line that interconnects the components of the host computer 200 and enables data exchange between them. The display device 208 is a device that displays an image corresponding to the video signal output from the video circuit 205. The input device 209 is, for example, a device that indicates a keyboard or a mouse, generates a signal corresponding to a user operation, and supplies the signal to the I / F 206.

外部記憶装置210は、例えば、CD−R/RWドライブユニット等によって構成され、CD−Rディスク等の記録メディアに記録されているデータまたはプログラムを読み出してCPU201に供給し、またはCPU201から供給されたデータを、MOディスクまたはFDに記録する装置である。   The external storage device 210 is constituted by, for example, a CD-R / RW drive unit or the like, reads data or a program recorded on a recording medium such as a CD-R disc, and supplies the data or program to the CPU 201 or data supplied from the CPU 201. Is a device that records the image on the MO disk or FD.

つぎに、ホストコンピュータ200に実装されているプログラムおよびドライバの機能について、図10および図11に基づいて説明する。図10は、後述する第1の処理(主に立体画像を印刷する際に選択される処理)を実行する場合において実現される手段を説明する図である。一方、図11は、後述する第2の処理(主に変化画像を印刷する際に選択される処理)を実行する場合において実現される手段を説明する図である。なお、ホストコンピュータ200のハードウエアと、HDD204に記録されているソフトウエアとが協働することにより、図10および図11に示す各手段が実現される。   Next, functions of programs and drivers installed in the host computer 200 will be described with reference to FIGS. FIG. 10 is a diagram for explaining means realized when executing a first process (a process selected mainly when a stereoscopic image is printed) to be described later. On the other hand, FIG. 11 is a diagram for explaining means realized when executing a second process (a process selected mainly when a change image is printed) to be described later. Note that the means shown in FIGS. 10 and 11 are realized by the cooperation of the hardware of the host computer 200 and the software recorded in the HDD 204.

この図10に示すように、第1の処理が実行される場合、ホストコンピュータ200では、画像処理プログラム221、ビデオドライバプログラム222、およびプリンタドライバプログラム223a等の各種のプログラムが所定のオペレーティングシステム(OS)の下で動作している。また、図11に示すように、第2の処理が実行される場合、図10の場合と同様に、ホストコンピュータ200では、画像処理プログラム221、ビデオドライバプログラム222、および、プリンタドライバプログラム223aに代えてプリンタドライバプログラム223bが所定のオペレーティングシステムの下で動作している。なお、図10および図11において、共通する部分には、同一の数字を付与しており、数字の末尾に付与されたアルファベットにより第1および第2のドライバの別を表している。   As shown in FIG. 10, when the first process is executed, in the host computer 200, various programs such as an image processing program 221, a video driver program 222, and a printer driver program 223a are stored in a predetermined operating system (OS ) Is operating under. As shown in FIG. 11, when the second process is executed, as in the case of FIG. 10, the host computer 200 replaces the image processing program 221, the video driver program 222, and the printer driver program 223a. The printer driver program 223b operates under a predetermined operating system. In FIG. 10 and FIG. 11, the same numerals are given to the common parts, and the first and second drivers are represented by the alphabet given at the end of the numerals.

ここで、相関性算出手段としての画像処理プログラム221は、HDD204から所望の画像データを選択し、立体画像または変化画像を生成するためのGUI(Graphical User Interface)を表示するとともに、選択された複数の画像データの相関性を計算するためのプログラムである。ビデオドライバプログラム222は、画像処理プログラム221によって生成された立体画像または変化画像のイメージを表示装置208に対して表示させる。   Here, the image processing program 221 serving as a correlation calculation unit selects desired image data from the HDD 204, displays a GUI (Graphical User Interface) for generating a stereoscopic image or a change image, and selects a plurality of selected images. It is a program for calculating the correlation of image data. The video driver program 222 causes the display device 208 to display a stereoscopic image or a change image generated by the image processing program 221.

プリンタドライバプログラム223a,223bは、複数の画像データから印刷データを生成する。以下では、プリンタドライバプログラム223aを例に挙げて説明する。図10に示すように、プリンタドライバプログラム223aは、反転処理モジュール231a、回転処理モジュール232a、解像度変換モジュール233a、細分化モジュール234a、合成モジュール235a、色変換モジュール236a、ハーフトーンモジュール237a、印刷データ生成モジュール238a、送信モジュール239a、色変換テーブル240a、記録率テーブル241a、および、分散テーブル242aを有している。   The printer driver programs 223a and 223b generate print data from a plurality of image data. Hereinafter, the printer driver program 223a will be described as an example. As shown in FIG. 10, the printer driver program 223a includes an inversion processing module 231a, a rotation processing module 232a, a resolution conversion module 233a, a subdivision module 234a, a composition module 235a, a color conversion module 236a, a halftone module 237a, and print data generation. A module 238a, a transmission module 239a, a color conversion table 240a, a recording rate table 241a, and a distribution table 242a are provided.

反転処理モジュール231aは、印刷しようとする画像データを表裏反転する処理を実行する。すなわち、レンズシート10に画像を印刷する場合、インク吸収層12に対して画像が印刷され、その裏面である凸レンズ11側から印刷された画像を観察することになるので、表裏が反対となった状態で観察される。そこで、反転処理モジュール231aは、印刷しようとする画像データを表裏反転する処理を実行する。   The reversal processing module 231a executes a process for reversing the image data to be printed. That is, when printing an image on the lens sheet 10, the image is printed on the ink absorbing layer 12, and the printed image is observed from the convex lens 11 side which is the back side thereof, so the front and back sides are reversed. Observed in state. Therefore, the reversal processing module 231a executes a process for reversing the image data to be printed.

回転処理モジュール232aは、画像データの方向と、印刷方向とが一致するように画像を回転させるためのモジュールである。解像度変換モジュール233aは、画像データの解像度を、プリンタ60の印刷解像度(例えば、1440dpi)等に応じて適宜変換するモジュールである。   The rotation processing module 232a is a module for rotating the image so that the direction of the image data matches the printing direction. The resolution conversion module 233a is a module that appropriately converts the resolution of the image data in accordance with the print resolution (for example, 1440 dpi) of the printer 60.

細分化モジュール234aは、複数の画像データのそれぞれを短冊状に細分化して細分化画像を生成するためのモジュールである。合成モジュール235aは、細分化モジュール234aによって細分化された短冊状の画像データを、一定の順序で並べて合成する処理を実行するモジュールである。色変換モジュール236aは、色変換テーブル240aを参照し、RGB(Red Green Blue)表色系によって表現された画像データを、例えば、CMYK(Cyan Magenta Yellow Black)表色系に変換する処理を実行するモジュールである。   The subdivision module 234a is a module for generating a subdivision image by subdividing each of a plurality of image data into strips. The synthesizing module 235a is a module that executes processing for arranging the strip-shaped image data subdivided by the subdividing module 234a in a predetermined order and synthesizing. The color conversion module 236a refers to the color conversion table 240a, and executes processing for converting image data expressed by an RGB (Red Green Blue) color system into, for example, a CMYK (Cyan Magenta Yellow Black) color system. It is a module.

ハーフトーンモジュール237aは、1画素が256階調によって表現される画像データの階調を、例えば、大ドット、中ドット、小ドットの3つによって表現するために、例えば、誤差拡散処理等を実行するためのモジュールである。なお、ハーフトーンモジュール237aは、記録率テーブル241aを参照して、ハーフトーン処理を実行する。   The halftone module 237a executes, for example, error diffusion processing in order to express the gradation of image data in which one pixel is expressed by 256 gradations, for example, by three large dots, medium dots, and small dots. It is a module to do. The halftone module 237a executes halftone processing with reference to the recording rate table 241a.

印刷データ生成モジュール238aは、ハーフトーンモジュール237aから出力されたビットマップデータから、各主走査時のドットの記録状態を示すラスタデータと、副走査送り量を示すデータとを含む印刷データを生成する。送信モジュール239aは、印刷データ生成モジュール238aによって生成された印刷データを、プリンタ60に対して送信するモジュールである。   The print data generation module 238a generates print data including raster data indicating the dot recording state during each main scan and data indicating the sub-scan feed amount from the bitmap data output from the halftone module 237a. . The transmission module 239a is a module that transmits the print data generated by the print data generation module 238a to the printer 60.

色変換テーブル240aは、RGB表色系とCMYK表色系の対応関係を示す情報を格納したテーブルである。記録率テーブル241aは、例えば、0〜255階調のそれぞれの場合における小、中、大のドットの記録率を示す情報を格納したテーブルである。分散テーブル242aは、ハーフトーンモジュール237aから出力されたビットマップデータから、各主走査時のドットの記録状態を示すラスタデータを生成する際に参照されるテーブルであり、ドットを分散して印刷するための分散データを格納している。   The color conversion table 240a is a table that stores information indicating the correspondence between the RGB color system and the CMYK color system. The recording rate table 241a is a table that stores information indicating the recording rate of small, medium, and large dots in each case of 0 to 255 gradations, for example. The distribution table 242a is a table that is referred to when generating raster data indicating the dot recording state during each main scan from the bitmap data output from the halftone module 237a. For storing distributed data.

なお、プリンタドライバプログラム223bは、プリンタドライバプログラム223aと同様のモジュールを有しているが、各モジュールの順序が、図10の場合とは異なっている。なお、これらの処理の詳細については後述する。   The printer driver program 223b has the same modules as the printer driver program 223a, but the order of the modules is different from that in FIG. Details of these processes will be described later.

つぎに、本発明の実施の形態の動作を説明する。図12は、本発明の実施の形態の動作を説明するためのフローチャートである。まず、ユーザは、画像処理プログラム221を起動する(S10)。そして、ユーザは、当該プログラムの起動によって表示装置208に表示されるGUIから、印刷しようとする複数の画像データを、所定の枚数分だけ指定する(S11)。   Next, the operation of the embodiment of the present invention will be described. FIG. 12 is a flowchart for explaining the operation of the embodiment of the present invention. First, the user activates the image processing program 221 (S10). Then, the user designates a predetermined number of pieces of image data to be printed from the GUI displayed on the display device 208 by starting the program (S11).

つぎに、ユーザが選択した画像を印刷する場合には、印刷を実行するための指令を入力装置209から入力する。その結果、GUIにおいて選択された画像データは、画像処理プログラム221に読み込まれる(S12)。すると、画像処理プログラム221は、指定された複数の画像データの中から任意の1つを基準画像として選択する(S13)。   Next, when printing an image selected by the user, a command for executing printing is input from the input device 209. As a result, the image data selected in the GUI is read into the image processing program 221 (S12). Then, the image processing program 221 selects any one of the specified plurality of image data as a reference image (S13).

つづいて、画像処理プログラム221は、比較対象となる比較画像を1つ選択する(S14)。なお、画像データが2つである場合には、基準画像ではない他の画像データが選択される。3つ以上の場合には基準画像を除く他の画像データの中から任意の画像データが選択される。   Subsequently, the image processing program 221 selects one comparison image to be compared (S14). When there are two pieces of image data, other image data that is not the reference image is selected. In the case of three or more, arbitrary image data is selected from other image data excluding the reference image.

つづいて、画像処理プログラム221は、基準画像データと、比較画像データの相関値Cを計算する(S15)。具体的には、基準画像データの複数のサンプリングポイントから画素を取得し、各画素についてRGB値の平均値を算出して輝度値をそれぞれ求める。そして、比較画像データについても同様の処理を行い、対応するサンプリングポイントから得られた輝度値同士を乗算し、得られた値を全てのサンプリングポイントについて加算して、サンプリング数で除する。このようにして得られた相関値Cは、画像同士が似通っている場合には大きい値となり、似通っていない場合には小さい値となる。具体的には、印刷しようとする画像が立体画像である場合には大きな値(1に近い値)となり、変化画像である場合には小さい値(0に近い値)となる(0≦C≦1)。   Subsequently, the image processing program 221 calculates a correlation value C between the reference image data and the comparison image data (S15). Specifically, pixels are obtained from a plurality of sampling points of the reference image data, and an average value of RGB values is calculated for each pixel to obtain a luminance value. Then, the same processing is performed for the comparison image data, the luminance values obtained from the corresponding sampling points are multiplied, the obtained values are added for all the sampling points, and divided by the number of samplings. The correlation value C obtained in this way is a large value when the images are similar, and a small value when the images are not similar. Specifically, when the image to be printed is a stereoscopic image, the value is large (a value close to 1), and when the image is a change image, the value is small (a value close to 0) (0 ≦ C ≦). 1).

つぎに、画像処理プログラム221は、このようにして得られた相関値Cが所定の閾値Th(例えば、“0.5”)よりも大きい場合には、相関性が低いとしてステップS18の処理に進み、それ以外の場合にはステップS17の処理に進む。なお、閾値Thについては、閾値設定手段としての入力装置209を操作することにより、ユーザから入力された任意の値を用いるようにしてもよい。すなわち、ユーザが自由に閾値を設定可能としてもよい。このようにすれば、第1の処理と第2の処理の切り分けをユーザの嗜好に応じて設定することができる。   Next, when the correlation value C obtained in this way is larger than a predetermined threshold Th (for example, “0.5”), the image processing program 221 determines that the correlation is low and proceeds to the process of step S18. If not, the process proceeds to step S17. As for the threshold Th, an arbitrary value input by the user may be used by operating the input device 209 as a threshold setting unit. That is, the user may freely set the threshold value. In this way, the separation between the first process and the second process can be set according to the user's preference.

ステップS17では、選択された全ての画像の比較が終了したか否かを判定し、終了していない場合にはステップS14に戻って同様の処理を繰り返し、それ以外の場合にはステップS19に進む。ステップS17においてYESと判定された場合には、選択された画像データは相互に相関性が高い画像データであり、立体画像であると考えられる。そこで、ステップS17でYESと判定された場合には、立体画像の印刷に適合する第1の印刷処理が実行されて印刷データが生成される。   In step S17, it is determined whether or not the comparison of all the selected images has been completed. If not, the process returns to step S14 and the same processing is repeated. Otherwise, the process proceeds to step S19. . If YES is determined in step S17, the selected image data is image data having a high correlation with each other, and is considered to be a stereoscopic image. Therefore, if YES is determined in the step S17, the first printing process suitable for the printing of the stereoscopic image is executed to generate the print data.

一方、画像データ同士の相関性が低いと判定された場合には、例えば、モーション画像またはチェンジング画像等の変化画像であるため、視差数が最大視差数未満であることを条件として、変化画像に適合する第2の印刷処理に進む。   On the other hand, when it is determined that the correlation between the image data is low, for example, since the image is a change image such as a motion image or a changing image, the change image is displayed on condition that the number of parallaxes is less than the maximum number of parallaxes. The process proceeds to a suitable second printing process.

ステップS19では、後述する第1の印刷処理が実行される。なお、このときは、プリンタドライバプログラム231aが選択されて処理が実行される。   In step S19, a first printing process to be described later is executed. At this time, the printer driver program 231a is selected and the process is executed.

ステップS18では、視差数、すなわち、選択された画像データの数が、凸レンズ11の幅を印刷幅で除した値である最大視差数以下であるか否かが判定され、視差数が最大視差数以下である場合にはステップS20に進み、それ以外の場合にはステップS19に進む。なお、視差数が最大視差数以下であることを判断する理由としては、視差数が最大視差数を上回る場合において、第2の印刷処理が実行されると、インクのにじみが発生したり、粒状感が増加したりする場合があるので、そのような事態を回避するためである。   In step S18, it is determined whether or not the number of parallaxes, that is, the number of selected image data is equal to or less than the maximum number of parallaxes, which is a value obtained by dividing the width of the convex lens 11 by the printing width. If so, the process proceeds to step S20. Otherwise, the process proceeds to step S19. Note that the reason for determining that the number of parallaxes is equal to or less than the maximum number of parallaxes is that when the number of parallaxes exceeds the maximum number of parallaxes, when the second print processing is executed, ink bleeding or granularity occurs. This is to avoid such a situation because the feeling may increase.

ステップS20では、後述する第2の印刷処理が実行される。なお、第2の印刷処理が実行されると、プリンタドライバプログラム231bが選択されて処理が実行される。   In step S20, a second printing process described later is executed. When the second print process is executed, the printer driver program 231b is selected and the process is executed.

つぎに、図13を参照して、図12に示す第1の印刷処理の詳細について説明する。第1の印刷処理が実行されると、反転処理モジュール231aは、選択された全ての画像データの表裏を反転する処理を実行する。具体的には、各画像データの各行データの順序を入れ替える処理を実行する。例えば、ある行データがアドレスA000〜A280に格納されている場合、これらを逆転してA280〜A000に順次格納する。なお、このように画像データを表裏逆転させるのは、前述したように、画像がインク吸収層12に印刷され、その裏面である凸レンズ11側から観察されるためである。   Next, the details of the first printing process shown in FIG. 12 will be described with reference to FIG. When the first printing process is executed, the inversion processing module 231a executes a process for inverting the front and back of all the selected image data. Specifically, a process for changing the order of the row data of the image data is executed. For example, when certain row data is stored at addresses A000 to A280, they are reversed and stored sequentially at A280 to A000. The reason why the image data is reversed upside down in this manner is that, as described above, the image is printed on the ink absorbing layer 12 and observed from the side of the convex lens 11 on the back side.

反転処理モジュール231aによって反転された複数の画像データは、回転処理モジュール232aに受け渡され、そこで、画像が正立しているか否か(画像における垂直方向が実際に表示された場合の垂直方向と一致するか否か)が判定され(S31)、正立している場合にはステップS33に進み、それ以外の場合にはステップS32に進む。ステップS32では、回転処理モジュール232aが、全ての画像データが正立するように、例えば、時計方向または反時計方向に画像データを90度回転する処理を実行する。なお、この処理は、例えば、画像データがディジタルカメラで撮影された場合に、カメラを横にして撮影したか、縦にして撮影したかによらず、正しい方向で印刷するための処理である。   The plurality of image data inverted by the inversion processing module 231a is transferred to the rotation processing module 232a, where the image is upright (whether the vertical direction in the image is displayed in the vertical direction when the image is actually displayed). Whether or not they coincide with each other is determined (S31), and if erect, the process proceeds to step S33, otherwise proceeds to step S32. In step S32, the rotation processing module 232a executes, for example, a process of rotating the image data by 90 degrees clockwise or counterclockwise so that all the image data is upright. This process is, for example, a process for printing in the correct direction when image data is shot with a digital camera, regardless of whether the camera is shot horizontally or vertically.

回転処理モジュール232aから出力された画像データは、解像度変換モジュール233aに供給され、そこで、解像度の変換処理が実行される。具体的には、図14に示すように、GUIにおいて、640×400画素の画像データが4枚選択されたとし、これを1440dpiの印刷精度で、レンズ解像度が60lpiおよびサイズが4×3インチのレンズシート10に印刷する場合を例として想定する。この場合、レンズシート10上に印刷される画像の画素数は、縦方向が4×1440=5740であり、横方向が3×1440=4320となるので、5740×4320となる。   The image data output from the rotation processing module 232a is supplied to the resolution conversion module 233a, where resolution conversion processing is executed. Specifically, as shown in FIG. 14, it is assumed that four pieces of image data of 640 × 400 pixels are selected in the GUI, and this has a printing accuracy of 1440 dpi, a lens resolution of 60 lpi, and a size of 4 × 3 inches. The case where it prints on the lens sheet 10 is assumed as an example. In this case, the number of pixels of the image printed on the lens sheet 10 is 5740 × 4320 because the vertical direction is 4 × 1440 = 5740 and the horizontal direction is 3 × 1440 = 4320.

ところで、図15に示すように、レンズシート10の横方向については1つの凸レンズ11に対して4枚分の画像の列データが順番に配置される。この例では、画像データAの列データa11〜aY1が繰り返して配置された後、画像データBの列データb11〜bY1が繰り返して配置され、同様に画像データCの列データc11〜cY1と、画像データDの列データd11〜dY1がそれぞれ繰り返して配置されている。凸レンズ11は、60lpiであり、印刷解像度が1440dpiであることから、1つのレンズ内には24画素(=1440/60)が印刷される。したがって、各画像については6(=24/4)回繰り返して同一の列データが配置される。また、レンズシート10の横方向の長さは3インチであり、また、レンズの数は180本であることから、解像度変換後の画像データA〜Dとしては、5740×180の画素数の画像が必要となる。したがって、解像度変換モジュール233aでは、640×400画素の画像データを、5740×180画素の画像データに変換する処理が実行される。すなわち、縦方向については、画素数が増加するので、解像度変換モジュール233aは、例えば、補間処理によって画素数を増加させる。また、横方向については画素数が減少するので、解像度変換モジュール233aは、例えば、間引き処理によって画素数を減少させる。図14は、640×400画素の画像データA〜Dが5740×180の画像データに変換される様子を示している。   By the way, as shown in FIG. 15, in the lateral direction of the lens sheet 10, the row data of four images is sequentially arranged with respect to one convex lens 11. In this example, after the column data a11 to aY1 of the image data A are repeatedly arranged, the column data b11 to bY1 of the image data B are repeatedly arranged. Similarly, the column data c11 to cY1 of the image data C and the image data B Column data d11 to dY1 of data D are repeatedly arranged. Since the convex lens 11 is 60 lpi and the printing resolution is 1440 dpi, 24 pixels (= 1440/60) are printed in one lens. Therefore, for each image, the same column data is arranged 6 (= 24/4) times. Further, since the lens sheet 10 has a horizontal length of 3 inches and the number of lenses is 180, the image data A to D after resolution conversion is an image having a number of pixels of 5740 × 180. Is required. Therefore, in the resolution conversion module 233a, processing for converting image data of 640 × 400 pixels into image data of 5740 × 180 pixels is executed. That is, since the number of pixels increases in the vertical direction, the resolution conversion module 233a increases the number of pixels by, for example, interpolation processing. In addition, since the number of pixels decreases in the horizontal direction, the resolution conversion module 233a decreases the number of pixels by, for example, thinning processing. FIG. 14 shows how the image data A to D of 640 × 400 pixels are converted to image data of 5740 × 180.

解像度変換モジュール233aによって解像度変換がなされた複数の画像データは、細分化モジュール234aに渡される。細分化モジュール234aは、図16に示すフローチャートにしたがって画像データを細部化する処理を実行する。まず、解像度変換モジュール233aにより、製造時のレンズ解像度と、印刷解像度、印刷サイズに応じて、解像度変換がなされ複数の画像データが合成された後の画像データの画像サイズの計算が行われる(S70)。例えば、印刷サイズが4×3インチ、レンズ解像度が60lpi、印刷解像度が1440dpiである場合、解像度変換後の画像データは、5740×4320となる。   The plurality of image data whose resolution has been converted by the resolution conversion module 233a is passed to the subdivision module 234a. The subdivision module 234a executes processing for refining image data according to the flowchart shown in FIG. First, the resolution conversion module 233a calculates the image size of the image data after the resolution conversion is performed and a plurality of pieces of image data are synthesized according to the lens resolution at the time of manufacture, the print resolution, and the print size (S70). ). For example, when the print size is 4 × 3 inches, the lens resolution is 60 lpi, and the print resolution is 1440 dpi, the image data after resolution conversion is 5740 × 4320.

つぎに、それぞれの凸レンズ11内に印刷される画素数Rを求める(S71)。それを求めるために、まず、個々の凸レンズ11内に打てるドット数を求める。これが画素数Rとなるが、上述の例では、Rは24(=1440/60)となる。つぎに、個々の凸レンズ11内に印刷される1画像データ当たりの画素数(ドット数)Lを求める(S72)。画素数Lの求め方は、画像データが4つある場合、画素数Lは6(=24/4)となる。もちろん、必ずしも各画像データのドット数が均一になるとは限らなく、その場合には、1つの凸レンズ11内または複数の凸レンズ11に跨って、ドット配分を調整すれば良い。   Next, the number R of pixels printed in each convex lens 11 is obtained (S71). In order to obtain this, first, the number of dots that can be struck in each convex lens 11 is obtained. This is the number of pixels R. In the above example, R is 24 (= 1440/60). Next, the number of pixels (number of dots) L per image data printed in each convex lens 11 is obtained (S72). The number of pixels L is calculated when the number of image data is four, and the number of pixels L is 6 (= 24/4). Of course, the number of dots in each image data is not necessarily uniform. In this case, the dot distribution may be adjusted within one convex lens 11 or across a plurality of convex lenses 11.

以上の計算に基づいて、S72で求められた画素数Lの分だけ、同じ画素を並べて配置(補完)する処理を行い(S73)、1視差分の細長い画像データを形成する。なお、他の画像データについても同様に処理する。さらに、細分化モジュール234aにより、画像が変化する順(視認角度順)に、画素L個からなる画像データを並べて配置する(S74)。それにより、1つの凸レンズ内に配置される、短冊状の細分化画像データが作成される。   Based on the above calculation, a process of arranging (complementing) the same pixels side by side for the number of pixels L obtained in S72 is performed (S73), and elongated image data for one parallax is formed. The other image data is similarly processed. Further, the segmentation module 234a arranges and arranges the image data composed of L pixels in the order in which the image changes (order of viewing angle) (S74). Thereby, strip-shaped fragmented image data arranged in one convex lens is created.

図13に戻って、細分化モジュール234aによって細分化された画像(短冊状の画像)データは、合成モジュール235aに供給され、そこで合成されて1枚の画像データとされる(S35)。この結果、サイズが5740×4320であり、また、ストライプ状の画像データが生成される(図14参照)。   Returning to FIG. 13, the image (strip-shaped image) data subdivided by the subdivision module 234a is supplied to the synthesis module 235a, where it is synthesized into one piece of image data (S35). As a result, the size is 5740 × 4320, and striped image data is generated (see FIG. 14).

合成モジュール235aによって合成された画像データは、色変換モジュール236aに供給され、そこで色変換処理が施される(S36)。すなわち、色変換モジュール236aは、色変換テーブル240aを参照し、RGB表色系で表された画像データを、CMYK表色系で表された画像データに変換する。その結果、図14に示すように、CMYKそれぞれの画像が生成される。なお、CMYK以外にも、例えば、LC(ライトシアン)、LM(ライトマゼンタ)等を含むように色変換を行うことも可能である。   The image data synthesized by the synthesis module 235a is supplied to the color conversion module 236a, where color conversion processing is performed (S36). That is, the color conversion module 236a refers to the color conversion table 240a and converts image data represented in the RGB color system into image data represented in the CMYK color system. As a result, as shown in FIG. 14, images of CMYK are generated. In addition to CMYK, color conversion can be performed so as to include, for example, LC (light cyan), LM (light magenta), and the like.

色変換モジュール236aにおいて色変換がなされた画像データは、ハーフトーンモジュール237aに供給され、そこで、ハーフトーン処理が施される(S37)。すなわち、ハーフトーンモジュール237aは、記録率テーブル241aを参照し、CMYKそれぞれの画像データに対して、例えば、誤差拡散処理またはディザ処理によるハーフトーン処理を施す。その結果、ハーフトーン処理が施されたCMYKそれぞれの画像データが生成される(図14参照)。   The image data color-converted by the color conversion module 236a is supplied to the halftone module 237a, where halftone processing is performed (S37). That is, the halftone module 237a refers to the recording rate table 241a, and performs a halftone process, for example, by error diffusion processing or dither processing on each of the CMYK image data. As a result, CMYK image data subjected to halftone processing is generated (see FIG. 14).

ハーフトーンモジュール237aによってハーフトーン処理が施された画像データは、印刷データ生成モジュール238aに供給され、そこで、印刷データが生成される(S38)。すなわち、印刷データ生成モジュール238aは、分散テーブル242aを参照し、CMYKそれぞれの画像データに対して分散処理を施し、印刷データを生成する。   The image data subjected to the halftone processing by the halftone module 237a is supplied to the print data generation module 238a, where print data is generated (S38). In other words, the print data generation module 238a refers to the distribution table 242a, applies distribution processing to each of the CMYK image data, and generates print data.

このようにして得られた印刷データは、送信モジュール239aを介してプリンタ60に送信される。なお、プリンタ60における印刷処理については後述する。   The print data obtained in this way is transmitted to the printer 60 via the transmission module 239a. The printing process in the printer 60 will be described later.

つぎに、図17を参照して、図12に示す第2の処理の詳細について説明する。   Next, the details of the second processing shown in FIG. 12 will be described with reference to FIG.

画像処理プログラム221から供給された画像データは、反転処理モジュール231bに供給され、そこで反転処理が施される。すなわち、前述のように、画像の表裏が反転される処理が実行される。   The image data supplied from the image processing program 221 is supplied to the inversion processing module 231b where the inversion processing is performed. That is, as described above, the process of inverting the front and back of the image is executed.

反転処理モジュール231bによって反転処理が施された画像データは、回転処理モジュール232bに渡され、そこで、変化画像であるか否かが判定され、変化画像である場合にはステップS52に進み、それ以外の場合にはステップS53に進む。ここで、変化画像の場合、レンズシート10のレンズの長手方向が水平方向となる方向を正立方向として画像が印刷される。しかしながら、印刷が行われる場合には、後述するようにレンズの長手方向がプリンタ60の副走査方向に一致するように配置されて印刷がなされる。このため、画像が変化画像である場合には、印刷方向に画像データの向きをあわせるために画像データを時計方向または反時計方向に90度回転させる(S52)。なお、図17に示す処理では、説明を簡略化するために図13に示す処理のように、画像データが正立しているか否かによって、回転させる処理を有していない。しかしながら、実際には、正立しているか否かに応じて画像を回転させる必要がある。   The image data that has been subjected to the inversion processing by the inversion processing module 231b is transferred to the rotation processing module 232b, where it is determined whether or not it is a change image. If it is a change image, the process proceeds to step S52. In this case, the process proceeds to step S53. Here, in the case of a change image, the image is printed with the direction in which the longitudinal direction of the lens of the lens sheet 10 is the horizontal direction as an erect direction. However, when printing is performed, the lens is arranged so that the longitudinal direction of the lens coincides with the sub-scanning direction of the printer 60 as described later. For this reason, when the image is a change image, the image data is rotated 90 degrees clockwise or counterclockwise in order to align the direction of the image data with the printing direction (S52). Note that the process shown in FIG. 17 does not include a process of rotating depending on whether or not the image data is upright, as in the process shown in FIG. 13 for the sake of simplicity. However, in practice, it is necessary to rotate the image depending on whether it is upright.

回転処理が終了した(または回転処理が施されなかった)画像データは、解像度変換モジュール233bに供給され、そこで解像度変換処理が施される(S53)。すなわち、解像度変換モジュール233bでは、図18に示すように、例えば、640×400画素の画像データであれば、レンズシート10および印刷解像度に応じて、5740×180画素の画像データに変換される。   The image data for which the rotation process has been completed (or the rotation process has not been performed) is supplied to the resolution conversion module 233b, where the resolution conversion process is performed (S53). That is, as shown in FIG. 18, the resolution conversion module 233b converts image data of 640 × 400 pixels into image data of 5740 × 180 pixels according to the lens sheet 10 and the printing resolution.

解像度変換モジュール233bによって解像度が変換された画像データは、色変換モジュール236bに供給され、そこで、色変換処理が施される(S54)。すなわち、色変換モジュール236bでは、色変換テーブル240bを参照して、RGB表色系で表された画像デーがCMYKそれぞれの画像データに変換される(図18参照)。   The image data whose resolution has been converted by the resolution conversion module 233b is supplied to the color conversion module 236b, where color conversion processing is performed (S54). In other words, the color conversion module 236b refers to the color conversion table 240b to convert image data represented in the RGB color system into CMYK image data (see FIG. 18).

色変換モジュール236bによって色変換がなされた画像データは、ハーフトーンモジュール237bに供給され、そこで、ハーフトーン処理が施される(S55)。すなわち、ハーフトーンモジュール237bは、記録率テーブル241bを参照して、CMYKそれぞれの画像データに対して、例えば、誤差拡散処理またはディザ処理によってハーフトーン処理を施す(図18参照)。   The image data color-converted by the color conversion module 236b is supplied to the halftone module 237b, where halftone processing is performed (S55). That is, the halftone module 237b refers to the recording rate table 241b and performs halftone processing on each of the CMYK image data by, for example, error diffusion processing or dither processing (see FIG. 18).

ハーフトーンモジュール237bによってハーフトーン処理が施された画像データは、細分化モジュール234bに供給され、そこで、細分化処理が施される(S56)。すなわち、細分化モジュール234bは、CMYKそれぞれの画像データに対して、図16と同様の処理により細分化画像を生成する。より具体的には、画像Aに対応するシアンCの画像から1列分の画像データが取り出されて、1レンズ内の1視差分のドット数分(例えば、6回分(=1レンズ24ドット/4視差))コピーされ、つぎに、画像BのシアンCの画像について同様の処理が実行され、画像C,Dについても同様の処理が施され、1レンズ分の細分化画像が生成される。   The image data that has been subjected to the halftone process by the halftone module 237b is supplied to the subdivision module 234b, where the subdivision process is performed (S56). That is, the subdivision module 234b generates a subdivision image by the same processing as in FIG. 16 for each image data of CMYK. More specifically, one column of image data is extracted from the cyan C image corresponding to the image A, and is equivalent to the number of dots for one parallax in one lens (for example, six times (= 1 lens 24 dots / pixel). 4 parallax)), and then the same processing is performed on the cyan C image of the image B, and the same processing is performed on the images C and D to generate a subdivided image for one lens.

細分化モジュール234bによって生成された細分化画像データは、合成モジュール235bに供給され、そこで、細分化画像を合成する処理が実行される(S57)。すなわち、合成モジュール235bは、CMYKそれぞれの細分化画像データを順番に並べて接合することにより合成画像を得る(図18参照)。   The segmented image data generated by the segmentation module 234b is supplied to the synthesis module 235b, where a process for synthesizing the segmented image is executed (S57). That is, the composition module 235b obtains a composite image by arranging and joining the subdivided image data of CMYK in order (see FIG. 18).

合成モジュール235bによって生成された合成画像データは、印刷データ生成モジュール238bに供給され、そこで、印刷データを生成する処理が実行される(S58)。すなわち、印刷データ生成モジュール238bは、分散テーブル242bを参照し、CMYKそれぞれの合成画像データに対して画素の分散処理を施し、印刷データを得る(図18参照)。   The combined image data generated by the combining module 235b is supplied to the print data generating module 238b, where a process for generating print data is executed (S58). That is, the print data generation module 238b refers to the distribution table 242b, applies pixel distribution processing to each of the combined image data of CMYK, and obtains print data (see FIG. 18).

以上のようにして生成された印刷データは、送信モジュール239bを介して、プリンタ60に供給される(S59)。   The print data generated as described above is supplied to the printer 60 via the transmission module 239b (S59).

以上に説明したように、第1の処理では、細分化画像を合成した後に、ハーフトーン処理を施して印刷データを生成し、第2の処理では、各画像にハーフトーン処理を施した後に、細分化画像を生成して印刷データを生成するようにした。ハーフトーン処理では、例えば、誤差拡散処理を例に挙げると、誤差拡散によって任意の画素の値は周辺の画素に影響を与える。このため、細分化画像を合成した後にハーフトーン処理を施すと、各細分化画像同士が相互に影響を与えあうことになる。一方、各画像に対してハーフトーン処理を施した後に細分化して合成すると、細分化画像同士が相互に影響を与えることがない。このため、得られる画像は独立性が高い画像となることから、例えば、変化画像に対しては後者の処理を適用することでそれぞれの画像の切り替わりが鋭くなる。   As described above, in the first process, after synthesizing the subdivided images, halftone processing is performed to generate print data, and in the second processing, after halftone processing is performed on each image, Print data is generated by generating subdivided images. In the halftone process, for example, when an error diffusion process is taken as an example, the value of an arbitrary pixel affects peripheral pixels by error diffusion. For this reason, when the halftone process is performed after the subdivided images are combined, the subdivided images affect each other. On the other hand, if each image is subjected to halftone processing and then subdivided and synthesized, the subdivided images do not affect each other. For this reason, since the obtained image becomes a highly independent image, for example, the change of each image becomes sharp by applying the latter process to the change image.

しかしながら、後者の場合では、図18に示すように複数の画像に対してハーフトーン処理および合成処理を施す必要が生じることから、処理のコストが高くつくことになる。すなわち、図14および図18に示すように、画像の合成処理では、前者が4枚の画像から1枚の画像を合成するのに対し、後者は16枚の画像から4枚の画像を合成するので、データ処理量が増加するとともに、プログラムの呼び出しの回数が増加するため、処理のコストが高くつく。また、ハーフトーン処理においても、前者が4枚の画像にハーフトーン処理を適用するのに対し、後者は16枚の画像にハーフトーン処理を適用するので、プログラムの呼び出しの回数が増加するため、処理のコストが高くつく。したがって、画像同士の独立性が問題とならない立体画像については、前者の処理を選択することにより、処理速度を向上させるようにしている。   However, in the latter case, as shown in FIG. 18, it is necessary to perform halftone processing and composition processing on a plurality of images, so that the processing cost is high. That is, as shown in FIGS. 14 and 18, in the image composition process, the former composes one image from four images, while the latter composes four images from 16 images. As a result, the amount of data processing increases and the number of program calls increases, resulting in high processing costs. In the halftone processing, the former applies halftone processing to four images, whereas the latter applies halftone processing to 16 images, so that the number of program calls increases. Processing costs are high. Therefore, for a stereoscopic image in which independence between images does not matter, the processing speed is improved by selecting the former processing.

また、ハーフトーン処理では、単位面積あたりのインクの記録率(デューティー)が所定の値を超えないように処理がなされる。しかしながら、各画像データに対してハーフトーン処理を施した後に、これらを細分化して合成した場合、例えば、最大視差を超える視差数が設定された場合には、細分化画像同士の接合部付近において、細分化画像同士が干渉して記録率が設定された値を超えてしまう場合があり、そのような場合にはにじみを生じてしまう場合がある。また、同様の理由によって、粒状感が増す場合がある。そこで、以上の実施の形態では、変化画像である場合であっても、視差数が最大視差数を上回る場合には第1の処理を選択することにより、そのような問題の発生を防止している。   In the halftone processing, processing is performed so that the ink recording rate (duty) per unit area does not exceed a predetermined value. However, when halftone processing is performed on each image data and then they are subdivided and synthesized, for example, when the number of parallaxes exceeding the maximum parallax is set, in the vicinity of the junction between the subdivided images The subdivided images may interfere with each other and the recording rate may exceed a set value. In such a case, bleeding may occur. For the same reason, the graininess may increase. Therefore, in the above embodiment, even if the image is a change image, such a problem can be prevented by selecting the first process when the number of parallaxes exceeds the maximum number of parallaxes. Yes.

なお、以上の第2の実施の形態では、説明を簡略化するために、第1の実施の形態で使用した図16のモジュールを共通に使用したが、異なるモジュールを使用し、前述とは異なる処理を実行することも可能である。例えば、第2の実施の形態では、ハーフトーン処理した結果を、各レンズ単位で6回コピーするようにしたが、例えば、ステップS53の解像度変換処理において、5740×180画素の画像データに変換した後、画素毎に6回コピーした画像を作成する。つぎに、色変換処理とハーフトーン処理を施し、ステップS56において、6画素単位で切り出して細分化する。このような方法によれば、ハーフトーン処理後の画素を6回繰り返しコピーする場合に比較して、より最適なハーフトーン処理を適用することにより、インクのにじみ等を少なくすることができる。すなわち、ハーフトーン処理は、ある程度の面積により階調表現をする方法であり、ある領域を占める画素群は一定のルールに基づいて配置されている。したがって、ハーフトーン処理後の画素を抜き出して繰り返しコピーすることは、当該規則性を失わせることになるので、発色に与える影響は少なくない。そこで、前述のように、ハーフトーン処理前の画素を繰り返しコピーすることでそのような影響を僅少にすることができる。   In the second embodiment described above, in order to simplify the description, the module of FIG. 16 used in the first embodiment is commonly used. However, a different module is used and is different from the above. It is also possible to execute processing. For example, in the second embodiment, the result of the halftone process is copied six times for each lens unit. For example, in the resolution conversion process in step S53, the image data is converted to image data of 5740 × 180 pixels. Thereafter, an image copied six times for each pixel is created. Next, color conversion processing and halftone processing are performed, and in step S56, the data is cut out in units of 6 pixels and subdivided. According to such a method, ink bleeding or the like can be reduced by applying a more optimal halftone process as compared to a case where the pixel after the halftone process is repeatedly copied six times. That is, halftone processing is a method of expressing gradation with a certain area, and pixel groups that occupy a certain region are arranged based on a certain rule. Therefore, extracting the pixels after halftone processing and copying them repeatedly causes the regularity to be lost, and thus has a considerable influence on color development. Therefore, as described above, such influence can be minimized by repeatedly copying pixels before halftone processing.

なお、ハーフトーン処理前に同一の画素を6回繰り返してコピーするのではなく、例えば、ステップS53の処理において5740×1080(=180×6)画素の画像を作成し、これにハーフトーン処理を適用した後に、6画素単位で切り出すようにすることも可能である。そのような方法によっても前述の発色の問題を僅少にすることができる。   Instead of copying the same pixel six times before halftone processing, for example, in the processing of step S53, an image of 5740 × 1080 (= 180 × 6) pixels is created, and this is subjected to halftone processing. After application, it is possible to cut out in units of 6 pixels. Such a method can also minimize the above-mentioned color development problem.

さらに、視差数によっては、1レンズ内の各視差のドット数は、必ずしも等しくならないことがあるので、1レンズのドット数の範囲内で視差毎にドット数を調整するようにしてもよい。例えば、1レンズ内に存在するドットが23で、4視差である場合には、6ドット、6ドット、6ドット、5ドットのように配分する。もちろん、以上のようなケースを考慮した上で、ステップS53(解像度変換処理)、ステップS56(細分化処理)、および、ステップS58(合成処理)を生成する必要がある。さらにまた、1レンズ内のドット数が整数にならない場合(例えば、1レンズ内に存在するドットが23.5等)もあるが、この場合、レンズ全体でドットを調整する必要がある。   Furthermore, depending on the number of parallaxes, the number of dots of each parallax in one lens may not necessarily be equal, so the number of dots may be adjusted for each parallax within the range of the number of dots in one lens. For example, when there are 23 dots in one lens and there are 4 parallaxes, the dots are distributed as 6 dots, 6 dots, 6 dots, and 5 dots. Of course, it is necessary to generate step S53 (resolution conversion processing), step S56 (subdivision processing), and step S58 (synthesis processing) in consideration of the above cases. Furthermore, there are cases where the number of dots in one lens does not become an integer (for example, the number of dots existing in one lens is 23.5, etc.). In this case, it is necessary to adjust the dots in the entire lens.

つぎに、以上のようにして生成された印刷データがプリンタ60に供給され、印刷処理が実行される際の動作について説明する。   Next, an operation when print data generated as described above is supplied to the printer 60 and print processing is executed will be described.

プリンタ60では、まず、CPU101が、レンズシート10のレンズの解像度に応じてレンズ信号二値化回路111のバンドパスフィルタ111aの通過帯域を初期設定する(ステップS100)。例えば、レンズシート10の解像度が100lpiである場合には、前述のように2kHzを中心とし、1.8kHzから2.2kHzまでを通過帯域とする。なお、印刷解像度に関するデータについては、ホストコンピュータ200から直接得るようにしてもよいし、または、プリンタ60の図示せぬ操作部から入力されるようにしてもよい。   In the printer 60, first, the CPU 101 initially sets the pass band of the band pass filter 111a of the lens signal binarization circuit 111 in accordance with the lens resolution of the lens sheet 10 (step S100). For example, when the resolution of the lens sheet 10 is 100 lpi, the center is 2 kHz as described above, and the pass band is from 1.8 kHz to 2.2 kHz. Note that the data relating to the print resolution may be obtained directly from the host computer 200 or may be input from an operation unit (not shown) of the printer 60.

バンドパスフィルタ111aの設定が完了すると、CPU101は、紙送りモータ51を駆動し、レンズシート10を所定の位置(印刷開始位置)まで移動させる。具体的には、レンズシート10の先端部分が光学センサ40の直下にくるようにレンズシート10をY方向に移動させる。   When the setting of the bandpass filter 111a is completed, the CPU 101 drives the paper feed motor 51 to move the lens sheet 10 to a predetermined position (print start position). Specifically, the lens sheet 10 is moved in the Y direction so that the front end portion of the lens sheet 10 is directly below the optical sensor 40.

ステップS101では、CPU101は、発光部22の発光を開始させるとともに、レンズ信号二値化回路101の動作を開始させる。そして、CPU101は、ホストコンピュータ200に対して、印刷データが存在するか否かを問い合わせ、存在する場合にはステップS103に進み、それ以外の場合にはステップS108に進む(ステップS102)。なお、印刷データが存在する場合は、ホストコンピュータ200の送信モジュール239aまたは送信モジュール239bから1ライン分の印刷データを受信し、印刷動作を開始する。具体的には、CPU101は、光学センサ38からの出力信号を参照し、キャリッジ31の現在位置を検出し、その位置に応じた駆動信号を生成してキャリッジモータ36に供給する。その結果、キャリッジ31は主走査方向に往復動作を開始する(ステップS103)。   In step S <b> 101, the CPU 101 starts the light emission of the light emitting unit 22 and starts the operation of the lens signal binarization circuit 101. Then, the CPU 101 inquires of the host computer 200 as to whether or not print data exists, and if present, proceeds to step S103, otherwise proceeds to step S108 (step S102). If print data exists, print data for one line is received from the transmission module 239a or the transmission module 239b of the host computer 200, and the printing operation is started. Specifically, the CPU 101 refers to the output signal from the optical sensor 38, detects the current position of the carriage 31, generates a drive signal corresponding to the position, and supplies it to the carriage motor 36. As a result, the carriage 31 starts reciprocating in the main scanning direction (step S103).

このとき、発光部22からは光が照射されている。発光部22から照射された光は、レンズシート10の凸レンズ11、インク吸収層12、および、インク透過層13を透過し、受光部43に入射される。図3に示すように、受光部43と凸レンズ11の光軸が一致する場合には、凸レンズ11によって集光された光の多くが受光部43に入射するので、受光部43の出力信号のレベルが高くなる。一方、これらの光軸がずれている場合(不図時)は、凸レンズ11によって集光された光の多くが受光部43に入射されないので、受光部43の出力信号のレベルが低くなる。   At this time, light is emitted from the light emitting unit 22. The light emitted from the light emitting unit 22 passes through the convex lens 11, the ink absorption layer 12, and the ink transmission layer 13 of the lens sheet 10 and enters the light receiving unit 43. As shown in FIG. 3, when the optical axes of the light receiving unit 43 and the convex lens 11 coincide with each other, most of the light collected by the convex lens 11 enters the light receiving unit 43, so the level of the output signal of the light receiving unit 43 Becomes higher. On the other hand, when these optical axes are deviated (not shown), most of the light collected by the convex lens 11 is not incident on the light receiving unit 43, so that the level of the output signal of the light receiving unit 43 becomes low.

図20は、凸レンズ11と、アナログ信号(受光部43の出力信号)と、ディジタル信号(二値化回路111cの出力信号)との対応関係を示している。図20(B)に示すように、受光部43から出力されるアナログ信号は、検出対象であるレンズ(図20(A)参照)の頂部11aで最大となり、徐々に減少する信号である。このような信号は、バンドパスフィルタ111aに供給され、高調波成分(駆動信号)および低域成分(例えば、直流成分および商用電源信号(50Hzの信号))が減衰され、出力される。   FIG. 20 shows a correspondence relationship between the convex lens 11, an analog signal (output signal of the light receiving unit 43), and a digital signal (output signal of the binarization circuit 111c). As shown in FIG. 20B, the analog signal output from the light receiving unit 43 is a signal that becomes maximum and gradually decreases at the apex 11a of the lens to be detected (see FIG. 20A). Such a signal is supplied to the band-pass filter 111a, and the harmonic component (driving signal) and the low-frequency component (for example, DC component and commercial power supply signal (50 Hz signal)) are attenuated and output.

バンドパスフィルタ111aから出力された信号は、増幅回路111bに供給され、そこで、例えば、40倍に増幅されて出力される。増幅回路111bから出力された信号は、二値化回路111cに供給され、そこで、所定の閾値と比較される。そして、入力信号が閾値以上である場合には二値化回路111cは出力信号をハイの状態にし、入力信号が閾値未満である場合には二値化回路111cは出力信号をローの状態にする。その結果、二値化回路111cからは、図20(C)に示すように、各凸レンズ11の所定の位置において立ち上がり、所定の位置において立ち下がるパルス列信号(レンズ信号)が生成されて出力される。   The signal output from the band pass filter 111a is supplied to the amplifier circuit 111b, where it is amplified by, for example, 40 times and output. The signal output from the amplifier circuit 111b is supplied to the binarization circuit 111c where it is compared with a predetermined threshold value. When the input signal is greater than or equal to the threshold, the binarization circuit 111c sets the output signal to a high state, and when the input signal is less than the threshold, the binarization circuit 111c sets the output signal to a low state. . As a result, as shown in FIG. 20C, the binarization circuit 111c generates and outputs a pulse train signal (lens signal) that rises at a predetermined position of each convex lens 11 and falls at a predetermined position. .

信号処理部106は、レンズ信号を、1つの凸レンズ11内に印刷する画素数に応じて定数倍し、前述したPTS信号を生成する。例えば、主走査方向の印刷解像度が1440dpiである場合にレンズピッチが60lpiである場合、1つの凸レンズ11内には24(=1440/60)個の画素が印刷されるため、信号処理部106は、レンズ信号を24倍した信号を生成してPTS信号として出力する。ヘッドドライバ109は、信号処理部106からDCユニット105を介して供給されたPTS信号に基づいて記録ヘッド32を制御し、各ノズルからPTS信号に同期してインクを吐出させて所望の画像を印刷させる(S104)。   The signal processing unit 106 multiplies the lens signal by a constant according to the number of pixels printed in one convex lens 11, and generates the above-described PTS signal. For example, when the print resolution in the main scanning direction is 1440 dpi and the lens pitch is 60 lpi, 24 (= 1440/60) pixels are printed in one convex lens 11, so the signal processing unit 106 Then, a signal obtained by multiplying the lens signal by 24 is generated and output as a PTS signal. The head driver 109 controls the recording head 32 based on the PTS signal supplied from the signal processing unit 106 via the DC unit 105 and prints a desired image by ejecting ink from each nozzle in synchronization with the PTS signal. (S104).

凸レンズ11は、製造時の精度および放置されている環境の湿度に応じてレンズ間隔が変化する。しかしながら、上述のように各凸レンズ11を直接検出し、当該検出されたタイミングに応じてインクを吐出することにより、レンズ間隔に応じて画像を確実に印刷することができる。   The convex lens 11 has a lens interval that varies depending on the accuracy of manufacturing and the humidity of the environment in which it is left. However, by directly detecting each convex lens 11 as described above and ejecting ink according to the detected timing, it is possible to reliably print an image according to the lens interval.

つぎに、CPU101は、1走査分の印刷処理が終了したか否かを判定し、終了した場合にはステップS106に進み、それ以外の場合にはステップS104に戻って同様の処理を繰り返す(ステップS105)。   Next, the CPU 101 determines whether or not the printing process for one scan has been completed. If the printing process has been completed, the process proceeds to step S106. Otherwise, the process returns to step S104 and the same process is repeated (step S106). S105).

ところで、図2に示す記録ヘッド32の場合、光学センサ40は右上部に配置されている。したがって、図1においてキャリッジ31が右から左へ走査する場合には、光学センサ40が記録ヘッド32に先行するので、前述のような動作が可能になる。しかしながら、キャリッジ31が左から右へ走査する場合には、光学センサ40が記録ヘッド32に後行するため、上述のような動作はできない。そこで、例えば、キャリッジ31が左から右へ移動する場合には、キャリッジ31を移動するのみで印刷を行わないようにする(ステップS106)。   By the way, in the case of the recording head 32 shown in FIG. 2, the optical sensor 40 is arranged in the upper right part. Therefore, when the carriage 31 scans from right to left in FIG. 1, the optical sensor 40 precedes the recording head 32, so that the operation as described above is possible. However, when the carriage 31 scans from left to right, the optical sensor 40 follows the recording head 32, and thus the above-described operation cannot be performed. Therefore, for example, when the carriage 31 moves from left to right, only the carriage 31 is moved and printing is not performed (step S106).

このようにして、1ライン分の印刷動作が完了すると、CPU101は紙送りモータ51を駆動して、レンズシート10を所定の距離だけ副走査方向に移動させる(ステップS107)。そして、CPU101は、ステップS102に戻って同様の処理を繰り返す。すなわち、CPU101は、ホストコンピュータ200からつぎの1ライン分の印刷データを受信し、前述の場合と同様の処理により当該印刷データを印刷する処理を実行する。このような処理を繰り返すことにより、所望の画像をレンズシート10に印刷することができる。   Thus, when the printing operation for one line is completed, the CPU 101 drives the paper feed motor 51 to move the lens sheet 10 in the sub-scanning direction by a predetermined distance (step S107). Then, the CPU 101 returns to step S102 and repeats the same processing. That is, the CPU 101 receives print data for the next line from the host computer 200, and executes a process for printing the print data by the same process as described above. By repeating such processing, a desired image can be printed on the lens sheet 10.

ステップS102において、NOと判断されると、CPU101は、ステップS108に進み、発光部22が発光状態となっている場合には発光部22の発光を停止させるとともに(ステップS108)、紙送りモータ51を駆動し、レンズシート10を排出する処理を実行する(ステップS109)。この結果、印刷が完了したレンズシート10は、プリンタ60の外部に排出される。   If NO is determined in step S102, the CPU 101 proceeds to step S108, and stops the light emission of the light emitting unit 22 when the light emitting unit 22 is in the light emitting state (step S108), and the paper feed motor 51. Is driven, and the lens sheet 10 is discharged (step S109). As a result, the lens sheet 10 that has been printed is discharged to the outside of the printer 60.

以上に説明したように、本発明の実施の形態では、凸レンズ11の位置を光学センサ40によって検出し、検出された位置に応じて画像を印刷するようにしたので、例えば、レンズシート10の製造時の精度が低い場合または環境の湿度によってレンズのピッチが変化した場合でも画像を各レンズの幅内に正確に印刷することが可能になる。   As described above, in the embodiment of the present invention, the position of the convex lens 11 is detected by the optical sensor 40, and an image is printed according to the detected position. Even when the accuracy of the time is low or the pitch of the lens changes due to the humidity of the environment, it is possible to print the image accurately within the width of each lens.

なお、以上の第1の実施の形態では、プラテン20にレンズシート10を直接載置する場合について説明したが、例えば、ある程度の厚みを有するトレイにレンズシート10を載置して、当該トレイとともにプリンタ60内部に挿入して印刷することも可能である。その場合には、トレイのレンズシート10が載置される部分の全体(または一部)に、発光部を設けておけばよい。   In the first embodiment described above, the case where the lens sheet 10 is directly placed on the platen 20 has been described. However, for example, the lens sheet 10 is placed on a tray having a certain thickness, and the lens sheet 10 is placed together with the tray. It is also possible to print by inserting into the printer 60. In that case, a light emitting part may be provided on the whole (or part) of the part on which the lens sheet 10 of the tray is placed.

また、以上の実施の形態では、プラテン20と記録ヘッド32との距離は一定としたが、これらの距離をレンズシート10の厚さに応じて調整可能としてもよい。その場合、発光部22と光学センサ40との距離が変化するため、距離が大きい場合には反射光が受光部43に全て入射されないことも想定される。したがって、例えば、これらの距離を調整可能とする場合は、十分な受光量が得られる範囲に調整可能範囲を限定することが望ましい。   In the above embodiment, the distance between the platen 20 and the recording head 32 is constant, but these distances may be adjustable according to the thickness of the lens sheet 10. In this case, since the distance between the light emitting unit 22 and the optical sensor 40 changes, it is assumed that not all the reflected light is incident on the light receiving unit 43 when the distance is large. Therefore, for example, when these distances can be adjusted, it is desirable to limit the adjustable range to a range in which a sufficient amount of received light can be obtained.

なお、以上の実施の形態では、キャリッジ31が図1の右から左に移動する際に印刷を行い、左から右へ移動する際には印刷を行わないようにしたが、例えば、キャリッジ31の裏面に光学センサ40とは別の光学センサを設けるようにし、左から右へ移動する際には別の光学センサからの信号に基づいて印刷を行うことも可能である。   In the above embodiment, printing is performed when the carriage 31 moves from the right to the left in FIG. 1 and printing is not performed when the carriage 31 moves from the left to the right. An optical sensor different from the optical sensor 40 may be provided on the back surface, and printing may be performed based on a signal from another optical sensor when moving from left to right.

このようなキャリッジ31を用いれば、キャリッジ31がどちらに移動する際にも印刷を行うことができるので、印刷速度を向上させることができる。   If such a carriage 31 is used, printing can be performed when the carriage 31 moves, so that the printing speed can be improved.

なお、以上の各実施の形態は、一例であって、これ以外にも種々の変形実施態様が存在する。例えば、以上の実施の形態では、画像同士の相関性と、最大視差数と視差数との関係を考慮して、第1および第2の処理を選択するようにしたが、例えば、レンズシート10のインク吸収性を考慮してこれらの処理を選択することも可能である。具体的には、インク吸収性が高い場合には、視差数が最大視差数を上回る場合であっても、第2の処理が選択されるようにしてもよい。すなわち、レンズシート10のインク吸収性が高い場合には、にじみが発生する可能性が低くなるので、視差数が最大視差数を上回る場合でも、各画像単位でハーフトーン処理を施すことができるからである。   Each of the above embodiments is an example, and there are various other modified embodiments. For example, in the above embodiment, the first and second processes are selected in consideration of the correlation between images and the relationship between the maximum number of parallaxes and the number of parallaxes. These treatments can be selected in consideration of the ink absorptivity. Specifically, when the ink absorptivity is high, the second process may be selected even when the number of parallaxes exceeds the maximum number of parallaxes. That is, when the ink absorption of the lens sheet 10 is high, the possibility of blurring is reduced, so that even when the number of parallaxes exceeds the maximum number of parallaxes, halftone processing can be performed for each image unit. It is.

また、インク吸収性ではなく、インクの種類も考慮して第1および第2の処理を選択するようにしてもよい。具体的には、顔料系インクについては染料系インクに比較して浸透性が低いので、顔料系インクが使用された場合には、視差数が最大視差数を上回る場合であっても各画像単位でハーフトーン処理を実行してもよい。また、顔料系インクの場合には、前述の理由から、立体画像および変化画像の全てにおいて第1の処理を選択するようにしてもよい。   Further, the first and second processes may be selected in consideration of the ink type, not the ink absorptivity. Specifically, since pigment-based inks have lower penetrability than dye-based inks, when pigment-based inks are used, each image unit is used even when the number of parallaxes exceeds the maximum number of parallaxes. A halftone process may be executed. In the case of pigment-based ink, the first process may be selected for all of the stereoscopic image and the change image for the reason described above.

また、以上の実施の形態では、画像データの所定のサンプリングポイントから画像データをサンプリングし、サンプリングされた画像データに基づいて、画像同士の相関性を求めるようにしたが、画像データを構成する全ての画素に基づいて相関性を計算することも可能である。また、以上の実施の形態では、3つ以上の画像が選択された場合には、基準画像とその他の画像を全て比較するようにしたが、基準画像とその他1つの画像とを比較し、その結果に応じて相関性を判定するようにしてもよい。   In the above embodiment, image data is sampled from a predetermined sampling point of image data, and correlation between images is obtained based on the sampled image data. It is also possible to calculate the correlation based on the pixels. In the above embodiment, when three or more images are selected, the reference image and all other images are compared. However, the reference image is compared with one other image, and the comparison is made. Correlation may be determined according to the result.

また、発光部22および発光部22が照射する光の波長については、詳細には説明していないが、例えば、インク吸収層12の透過性が高い波長(例えば、赤外線)等に設定することにより、検出精度を向上させることができる。   Further, although the light emitting unit 22 and the wavelength of the light emitted from the light emitting unit 22 are not described in detail, for example, by setting the wavelength of the ink absorbing layer 12 to be high (for example, infrared) or the like , Detection accuracy can be improved.

また、以上の各実施の形態では、受光部43は反射光または透過光をそのまま入射するようにしたが、例えば、発光部22と同一の波長の光のみを選択的に通過させるフィルタを通した光を入射するようにしてもよい。そのような実施の形態によれば、環境光の影響を少なくすることができる。   In each of the embodiments described above, the light receiving unit 43 receives the reflected light or transmitted light as it is. For example, the light receiving unit 43 passes a filter that selectively allows only light having the same wavelength as the light emitting unit 22 to pass through. Light may be incident. According to such an embodiment, the influence of ambient light can be reduced.

また、以上の実施の形態では、二値化回路111cにおいて、所定の閾値と比較することによりアナログ信号を二値化するようにしたので、閾値によってはディジタル信号のデューティーが50%にならない場合も想定される。そこで、増幅回路111bから出力される信号を反転し、これともとの信号を比較し、これらの交差点においてハイまたはローを切り替えるようにすれば、50%に近いデューティーの信号を簡易に得ることができる。   In the above embodiment, the binarization circuit 111c binarizes the analog signal by comparing it with a predetermined threshold value, so that the duty of the digital signal may not be 50% depending on the threshold value. is assumed. Therefore, by inverting the signal output from the amplifier circuit 111b, comparing the original signal, and switching between high and low at these intersections, it is possible to easily obtain a signal with a duty close to 50%. it can.

また、以上の各実施の形態では、図8に示すようにレンズ信号二値化回路111としては、アナログ回路を使用するようにしたが、例えば、アナログ信号をA/D(Analog to Digital)変換器等でディジタル化した後に各種の処理を実行するようにしてもよい。そのような実施の形態によれば、例えば、バンドパスフィルタ111aの通過帯域を簡易に調整することができる。   In each of the above embodiments, as shown in FIG. 8, an analog circuit is used as the lens signal binarization circuit 111. For example, analog signals are converted from analog to digital (A / D). Various processes may be executed after digitization by a device or the like. According to such an embodiment, for example, the passband of the bandpass filter 111a can be easily adjusted.

また、以上の実施の形態では、直描印刷の場合を例に挙げて説明を行ったが、分離印刷の場合においても本発明を適用可能であることはいうまでもない。   In the above embodiment, the case of direct drawing printing has been described as an example, but it goes without saying that the present invention can also be applied to the case of separate printing.

また、以上の各実施の形態では、プリンタ60はホストコンピュータ200に接続され、当該ホストコンピュータ200から印刷データを受信するようにした。しかしながら、例えば、画像の記憶手段、画像の編集手段、および、印刷データの生成手段等を有し、ホストコンピュータ200を接続しなくても印刷処理が可能ないわゆるスタンドアローンタイプのプリンタ60に本発明を適用することも可能である。また、プリンタ(プリンタ60)、スキャナ、ファクシミリ、および、コピー機が一体となったディジタル複合機に対しても本発明を適用可能である。すなわち、図10および図11に示す機能をプリンタ側に実装することも可能である。   In the above embodiments, the printer 60 is connected to the host computer 200 and receives print data from the host computer 200. However, the present invention is, for example, a so-called stand-alone type printer 60 that has an image storage unit, an image editing unit, a print data generation unit, and the like and can perform a printing process without connecting the host computer 200. It is also possible to apply. The present invention can also be applied to a digital multi-function apparatus in which a printer (printer 60), a scanner, a facsimile, and a copier are integrated. That is, the functions shown in FIGS. 10 and 11 can be mounted on the printer side.

本発明の実施の形態に係るプリンタの概略構成例を示す図である。1 is a diagram illustrating a schematic configuration example of a printer according to an embodiment of the present invention. 図1に示す記録ヘッドの詳細な構成例を示す図である。FIG. 2 is a diagram illustrating a detailed configuration example of a recording head illustrated in FIG. 1. 図2に示す光学センサおよびレンズシートの断面図である。It is sectional drawing of the optical sensor and lens sheet | seat shown in FIG. 図1に示す実施の形態の制御系の構成例を示す図である。It is a figure which shows the structural example of the control system of embodiment shown in FIG. 図1に示す実施の形態のプリンタを図の右側から眺めた図である。It is the figure which looked at the printer of embodiment shown in FIG. 1 from the right side of the figure. 図1に示す実施の形態のプリンタを図の右側から眺めた図である。It is the figure which looked at the printer of embodiment shown in FIG. 1 from the right side of the figure. 図6に示す制御部の詳細な構成例を示すブロック図である。It is a block diagram which shows the detailed structural example of the control part shown in FIG. 図7に示すレンズ信号二値化回路の詳細な構成例である。8 is a detailed configuration example of a lens signal binarization circuit shown in FIG. 7. 図7に示すホストコンピュータの詳細な構成例を示すブロック図である。FIG. 8 is a block diagram illustrating a detailed configuration example of a host computer illustrated in FIG. 7. 第1の処理が実行されている場合に実現されるモジュールの一例である。It is an example of the module implement | achieved when the 1st process is performed. 第2の処理が実行されている場合に実現されるモジュールの一例である。It is an example of the module implement | achieved when the 2nd process is performed. 印刷データを生成する処理の一例を説明するフローチャートである。6 is a flowchart illustrating an example of processing for generating print data. 図12に示す第1の処理の詳細を説明するフローチャートである。It is a flowchart explaining the detail of the 1st process shown in FIG. 第1の処理の概要を説明するための図である。It is a figure for demonstrating the outline | summary of a 1st process. 細分化処理の概要を説明する図である。It is a figure explaining the outline | summary of a subdivision process. 細分化処理の詳細を説明するフローチャートである。It is a flowchart explaining the detail of a subdivision process. 図12に示す第2の処理の詳細を説明するフローチャートである。It is a flowchart explaining the detail of the 2nd process shown in FIG. 第2の処理の概要を説明するための図である。It is a figure for demonstrating the outline | summary of a 2nd process. プリンタにおいて実行される処理を説明するフローチャートである。6 is a flowchart illustrating processing executed in a printer. 図8に示すレンズ信号二値化回路の動作を説明するタイミング図である。FIG. 9 is a timing chart for explaining the operation of the lens signal binarization circuit shown in FIG. 8. 凸レンズによる立体視の原理を説明する図である。It is a figure explaining the principle of the stereoscopic vision by a convex lens.

符号の説明Explanation of symbols

11 凸レンズ(レンズ),60 プリンタ,200 ホストコンピュータ(画像処理装置),221 画像処理プログラム(相関性算出手段),223 ドライバプログラム(印刷データ生成手段)   11 convex lens (lens), 60 printer, 200 host computer (image processing apparatus), 221 image processing program (correlation calculation means), 223 driver program (print data generation means)

Claims (9)

一方向を長手とする複数のレンズが配置されているレンズシートに印刷画像を形成するために複数の画像データを処理する画像処理装置において、
上記複数の画像データの相関性を算出する相関性算出手段と、
上記相関性算出手段によって算出された相関性が所定の閾値以上である場合は、上記複数の画像をそれぞれ細分化して得られた細分化画像を順次並べて合成した後にハーフトーン処理を施して印刷データを生成する第1の処理を選択して実行し、上記相関性が上記所定の閾値未満である場合は、上記複数の画像のそれぞれに対してハーフトーン処理を施して得られた画像を細分化した後に合成して印刷データを生成する第2の処理を選択して実行する印刷データ生成手段と、
を具備することを特徴とする画像処理装置。
In an image processing apparatus that processes a plurality of image data in order to form a print image on a lens sheet in which a plurality of lenses having one longitudinal direction are arranged,
Correlation calculating means for calculating the correlation of the plurality of image data;
If the correlation calculated by the correlation calculation means is equal to or greater than a predetermined threshold, the print data is subjected to halftone processing after the subdivided images obtained by subdividing the plurality of images are sequentially arranged and synthesized. If the correlation is less than the predetermined threshold, the image obtained by performing halftone processing on each of the plurality of images is subdivided. Print data generation means for selecting and executing a second process for generating print data by combining the print data;
An image processing apparatus comprising:
前記印刷データ生成手段は、前記相関性算出手段によって算出された相関性が前記所定の閾値未満である場合であっても、前記画像の枚数が、前記レンズの幅を印字幅によって除することにより得られる最大視差数を上回るときは、前記第1の処理を選択することを特徴とする請求項1記載の画像処理装置。   The print data generation unit is configured such that the number of images is obtained by dividing the width of the lens by the print width even when the correlation calculated by the correlation calculation unit is less than the predetermined threshold. The image processing apparatus according to claim 1, wherein when the number of obtained parallaxes is exceeded, the first process is selected. 前記印刷データ生成手段の前記閾値は、前記印刷画像が立体画像である場合には前記第1の処理が選択され、前記印刷画像が変化画像である場合には前記第2の処理が選択されるようにその値が設定されていることを特徴とする請求項1記載の画像処理装置。   As the threshold value of the print data generation unit, the first process is selected when the print image is a stereoscopic image, and the second process is selected when the print image is a change image. 2. The image processing apparatus according to claim 1, wherein the value is set as follows. 前記印刷データ生成手段の前記閾値を任意に設定可能な閾値設定手段をさらに有することを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a threshold setting unit capable of arbitrarily setting the threshold of the print data generation unit. 前記印刷データ生成手段は、前記レンズシートのインク吸収性も考慮して、前記第1の処理または第2の処理を選択することを特徴とすることを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the print data generation unit selects the first process or the second process in consideration of ink absorbability of the lens sheet. . 前記相関性算出手段は、任意に選ばれた1の画像データと、それ以外の画像データとの相互の相関値を算出することにより、画像データ間の相関性を算出することを特徴とする請求項1記載の画像処理装置。   The correlation calculation means calculates correlation between image data by calculating a correlation value between one arbitrarily selected image data and other image data. Item 6. The image processing apparatus according to Item 1. 前記相関性算出手段は、前記任意に選ばれた1の画像データの複数のサンプリングポイントにおいてサンプリングされた画素群の情報と、それ以外の画像データの対応するサンプリングポイントにおいてサンプリングされた画素群の情報に基づいて画像間の相関性を算出することを特徴とする請求項6記載の画像処理装置。   The correlation calculation means includes information on pixel groups sampled at a plurality of sampling points of the arbitrarily selected one image data, and information on pixel groups sampled at corresponding sampling points of other image data. The image processing apparatus according to claim 6, wherein the correlation between the images is calculated based on the image. 一方向を長手とする複数のレンズが配置されているレンズシートに印刷画像を形成するために複数の画像データを処理すると共に、該処理された画像データに基づいて印刷を実行するための印刷装置において、
上記複数の画像データの相関性を算出する相関性算出手段と、
上記相関性算出手段によって算出された相関性が所定の閾値以上である場合は、上記複数の画像をそれぞれ細分化して得られた細分化画像を順次並べて合成した後にハーフトーン処理を施して印刷データを生成する第1の処理を選択して実行し、上記相関性が上記所定の閾値未満である場合は、上記複数の画像のそれぞれに対してハーフトーン処理を施して得られた画像を細分化した後に合成して印刷データを生成する第2の処理を選択して実行する印刷データ生成手段と、
を具備することを特徴とする印刷装置。
Printing apparatus for processing a plurality of image data to form a print image on a lens sheet on which a plurality of lenses having one direction as a longitudinal direction are arranged, and executing printing based on the processed image data In
Correlation calculating means for calculating the correlation of the plurality of image data;
If the correlation calculated by the correlation calculation means is equal to or greater than a predetermined threshold, the print data is subjected to halftone processing after the subdivided images obtained by subdividing the plurality of images are sequentially arranged and synthesized. If the correlation is less than the predetermined threshold, the image obtained by performing halftone processing on each of the plurality of images is subdivided. Print data generation means for selecting and executing a second process for generating print data by combining the print data;
A printing apparatus comprising:
一方向を長手とする複数のレンズが配置されているレンズシート上に配置される印刷画像を形成するために複数の画像データを処理すると共に、該処理された画像データに基づいて印刷を実行するための印刷方法において、
上記複数の画像データの相関性を算出する相関性算出工程と、
上記相関性算出手段によって算出された相関性が所定の閾値以上である場合は、上記複数の画像をそれぞれ細分化して得られた細分化画像を順次並べて合成した後にハーフトーン処理を施して印刷データを生成する第1の処理を選択して実行し、上記相関性が上記所定の閾値未満である場合は、上記複数の画像のそれぞれに対してハーフトーン処理を施して得られた画像を細分化した後に合成して印刷データを生成する第2の処理を選択して実行する印刷データ生成工程と、
を具備することを特徴とする印刷方法。
A plurality of image data is processed to form a print image arranged on a lens sheet on which a plurality of lenses having one longitudinal direction are arranged, and printing is executed based on the processed image data In the printing method for
A correlation calculating step of calculating the correlation of the plurality of image data;
If the correlation calculated by the correlation calculation means is equal to or greater than a predetermined threshold, the print data is subjected to halftone processing after the subdivided images obtained by subdividing the plurality of images are sequentially arranged and synthesized. If the correlation is less than the predetermined threshold, the image obtained by performing halftone processing on each of the plurality of images is subdivided. A print data generation step of selecting and executing a second process for generating print data by combining the print data;
A printing method comprising:
JP2005266396A 2005-09-14 2005-09-14 Image processing apparatus, printer, and printing method Withdrawn JP2007079895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005266396A JP2007079895A (en) 2005-09-14 2005-09-14 Image processing apparatus, printer, and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005266396A JP2007079895A (en) 2005-09-14 2005-09-14 Image processing apparatus, printer, and printing method

Publications (1)

Publication Number Publication Date
JP2007079895A true JP2007079895A (en) 2007-03-29

Family

ID=37940141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005266396A Withdrawn JP2007079895A (en) 2005-09-14 2005-09-14 Image processing apparatus, printer, and printing method

Country Status (1)

Country Link
JP (1) JP2007079895A (en)

Similar Documents

Publication Publication Date Title
JP4289358B2 (en) Printer and printing method
JP5176725B2 (en) Printing apparatus, lens sheet, and printing method
JP2007076084A (en) Printer, and printing method
JP3420394B2 (en) Lenticular print medium, inkjet recording apparatus and inkjet recording method
JP4337823B2 (en) Printer and printing method
JP4997775B2 (en) Printer
JPH01129667A (en) Picture forming device
JP4835110B2 (en) Image processing apparatus, printing apparatus, and printing method
JP4752387B2 (en) Printing apparatus and printing method
JP4844142B2 (en) Printer
JP2007079895A (en) Image processing apparatus, printer, and printing method
JP2007098830A (en) Printing apparatus, printing method and program for printing
JP2007199452A (en) Image processing device, printer, and printing method
JP2007196602A (en) Printer
JP4797524B2 (en) Image processing apparatus, printing apparatus, and printing method
JP5459323B2 (en) Printing device
JP5287971B2 (en) Printing device
JP2009104154A (en) Lens sheet
JP5082225B2 (en) Printing apparatus and printing method
JP2008155389A (en) Printer, image processor and printing method
JP2007127832A (en) Optical sheet, printer and printing method
JP5786189B2 (en) Printed matter, printed matter manufacturing method, and printing apparatus
JP2007125790A (en) Printer and printing method
JP2007038597A (en) Printer and lens detection method
JP2007221430A (en) Image output device and method, image processor, and image processing method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070405

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20081202